[clangd] Fix feature modules to drop diagnostics
authorKadir Cetinkaya <kadircet@google.com>
Mon, 31 May 2021 06:24:06 +0000 (08:24 +0200)
committerKadir Cetinkaya <kadircet@google.com>
Thu, 17 Jun 2021 07:29:29 +0000 (09:29 +0200)
commit204014ec7557cde214ee8aae66661927bf9976f2
tree58e36e757f41879560a75d3eb514dd3d3cf547d9
parentb662651586bedd5350914f64463fe415105785c8
[clangd] Fix feature modules to drop diagnostics

Ignored diagnostics were only checked after level adjusters and assumed
it would stay the same for the rest. But it can also be modified by
FeatureModules.

Differential Revision: https://reviews.llvm.org/D103387
clang-tools-extra/clangd/Diagnostics.cpp
clang-tools-extra/clangd/Diagnostics.h
clang-tools-extra/clangd/unittests/FeatureModulesTests.cpp