Some of the misc checks belong to readability/. I'm moving them there
without changing check names for now. As the next step, I want to register some
of these checks in the google and llvm modules with suitable settings (e.g.
BracesAroundStatementsCheck). I'm not sure if we want to create a "readability"
module, probably not.
Details
Diff Detail
Event Timeline
clang-tidy/misc/CMakeLists.txt | ||
---|---|---|
18 | Hm. I understand that you don't want to create a separate readability at this point. But leave a comment here, otherwise the layering seems quite confusing. | |
clang-tidy/readability/BracesAroundStatementsCheck.h | ||
10–11 | Not sure whether this is allowed/desired for LLVM style, but we should fix the comment on the #endif accordingly. | |
clang-tidy/readability/FunctionSize.h | ||
48 | Fix comment. | |
clang-tidy/readability/RedundantSmartptrGet.h | ||
37 | Same here. |
Fixed #endif comments, documented the clangTidyMisc -> clangTidyReadability
dependency.
clang-tidy/misc/CMakeLists.txt | ||
---|---|---|
18 | Done. | |
clang-tidy/readability/BracesAroundStatementsCheck.h | ||
10–11 | Yeah, the llvm-header-guard check should at least fix existing comments if not add new ones. Its current behavior is slightly harmful. | |
clang-tidy/readability/FunctionSize.h | ||
48 | Fixed #endif comments. |
Hm. I understand that you don't want to create a separate readability at this point. But leave a comment here, otherwise the layering seems quite confusing.