[clangd] Dont work on diags if we are not going to emit
authorKadir Cetinkaya <kadircet@google.com>
Thu, 16 Sep 2021 09:07:10 +0000 (11:07 +0200)
committerKadir Cetinkaya <kadircet@google.com>
Thu, 16 Sep 2021 14:50:42 +0000 (16:50 +0200)
commitea79b77da3eeba926e16c3dd8a4f6626c139e185
tree481f36e27d5024d12b5f58d8a82f969c53f552d9
parent45a738363ee39754a0e93d9f779bda2cad83fa18
[clangd] Dont work on diags if we are not going to emit

Don't install clang-tidy checks and IncludeFixer or process clang diags
when they're going to be dropped. Also disables analysis for some
warnings completely.

Differential Revision: https://reviews.llvm.org/D109884
clang-tools-extra/clangd/ParsedAST.cpp
clang-tools-extra/clangd/unittests/ParsedASTTests.cpp