Add instrumentation in ConfigCompile to validate that items in ClangTidy:[Add|Remove] correspond to actual clang-tidy checks.
If they don't a warning will be presented to the user.
This is especially useful for catching typos in the glob items.
Differential D92874
[clangd] Validate clang-tidy Checks in clangd config. njames93 on Dec 8 2020, 11:45 AM. Authored by
Details Add instrumentation in ConfigCompile to validate that items in ClangTidy:[Add|Remove] correspond to actual clang-tidy checks. This is especially useful for catching typos in the glob items.
Diff Detail
Event TimelineComment Actions Made GlobList::specifies const. Comment Actions Thanks for doing this!
Comment Actions Dont check for globs coverage instead use a fast set based approach that only matches tidy checks exactly. Comment Actions Thanks! Just some organization nits.
|
This is a pretty weird place to depend on clang-tidy.
Can we move the "is this a clang-tidy check name" function to somewhere more clang-tidy related, like TidyProvider.h or even clang-tidy/ClangTidyModuleRegistry.h? ("isRegisteredCheck")