Allow .clang-tidy overrides
See original GitHub issueAs of version 2.3.0, clang-power-tools allows the use of using a .clang-tidy file by specifying -tidy .clang-tidy. This allows clang-tidy to default to using the nearest .clang-tidy file found which is great for global setups. However, there doesn’t appear to be a way to override settings or specify additional settings that may be missing from this file. For example, in our .clang-tidy file, we list the global checks that we’d like checked. If we want to isolate a check and apply the fix for that one check so we can commit them individually, we can do so by adding `-checks=-*,some-check -fix" to clang-tidy and it will only run single-check with the rest of the options read from the .clang-tidy file (errors, format, header regex, etc). I have tried to do this with the script with this
PowerShell.exe ... -tidy .clang-tidy -tidy-fix "-checks=-*,single-check -fix"
But -tidy-fix completely overrides -tidy. Instead of -tidy-fix, could there be -tidy-additional or some other parameter that would allow me to do this?
Keep up the great work!
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
Ahh I see. My mistake again. I have verified that this work. Thanks again!
We’re going to continue the work on this issue: #168