Closed
Description
The following .clang-tidy
file will enable certain checks:
---
Checks: >
bugprone-argument-comment,
bugprone-assert-side-effect,
bugprone-bool-pointer-implicit-conversion,
...
The following .clang-tidy
file (missing the trailing commas) will enable no checks, but clang-tidy will not complain:
---
Checks: >
bugprone-argument-comment
bugprone-assert-side-effect
bugprone-bool-pointer-implicit-conversion
...
It is easy to forget to add a trailing comma in a long list, accidentally disabling checks (real-world example). Clang-tidy should perform some validation of the config to catch such bugs.