Details
- Reviewers
alexfh
Diff Detail
Event Timeline
The code is fine. I'm slightly concerned about the code duplication in the tests, but I see no better way of doing this. If we come up with something more elegant, we can always change this. Please address the comments and I'll commit the patch for you.
clang-tidy/misc/BracesAroundStatementsCheck.cpp | ||
---|---|---|
117 | I'd change the default to 0U in order to use get<unsigned>. | |
test/clang-tidy/misc-braces-around-statements-always.cpp | ||
6 | You should be able to use the "-config" command line option added in r218511 to avoid creating a separate .clang-tidy file. | |
15 | You can omit this, it's added implicitly by the script. |
Use -config to pass CheckOptions.
- [clang-tidy] [misc-braces-around-statements] Using -config for tests instead of a new .clang-tidy file. Default value set to: 0U.
- Merge branch 'master' into feature/misc-braces-around-statements-option
Committed as r219611 with minor modifications:
merged test/clang-tidy/misc-braces-around-statements-always.cpp into test/clang-tidy/misc-braces-around-statements.cpp and removed unnecessary CHECK-NOTs from the tests.
Thanks for the patch!
I'd change the default to 0U in order to use get<unsigned>.