[clangd] Validate clang-tidy Checks in clangd config.
authorNathan James <n.james93@hotmail.co.uk>
Tue, 15 Dec 2020 21:10:56 +0000 (21:10 +0000)
committerNathan James <n.james93@hotmail.co.uk>
Tue, 15 Dec 2020 21:10:57 +0000 (21:10 +0000)
commitdfac97d557690dd4b1f2fab798680234b238d11f
tree83d2f65797d57fc8b17bc1c9a8508b3b58b85467
parentb1afbceb9296a9ce14a0bd38f36e93b8c77fa18a
[clangd] Validate clang-tidy Checks in clangd config.

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.

Reviewed By: sammccall

Differential Revision: https://reviews.llvm.org/D92874
clang-tools-extra/clangd/ConfigCompile.cpp
clang-tools-extra/clangd/TidyProvider.cpp
clang-tools-extra/clangd/TidyProvider.h
clang-tools-extra/clangd/unittests/ConfigCompileTests.cpp