Can one make clang-tidy fail on invalid configuration?

Viewed 84

Whenever clang-tidy finds an error in my code, it also warns me that there's an invalid configuration value in my .clang-tidy file:

warning: invalid configuration value '' for option 'readability-identifier-naming.MacroDefinitionCase'

That is indeed an error, which I intend to fix.

I would however like if I could make clang-tidy fail when there's something wrong in my configuration, instead of just warning about it and continuing. It's extra bad since these warnings are only printed whenever clang-tidy finds an error in my code. So I won't notice until that happens.

Is there a way to ask clang-tidy to fail hard for configuration errors?

0 Answers
Related