[clangd] Disable modernize-macro-to-enum tidy check
authorKadir Cetinkaya <kadircet@google.com>
Tue, 17 Jan 2023 16:11:02 +0000 (17:11 +0100)
committerKadir Cetinkaya <kadircet@google.com>
Tue, 17 Jan 2023 16:12:07 +0000 (17:12 +0100)
Check relies on seeing PP-directives from preamble, hence it's unusable.
See https://github.com/clangd/clangd/issues/1464.

clang-tools-extra/clangd/TidyProvider.cpp

index 4adc534..f3ed6f0 100644 (file)
@@ -205,7 +205,7 @@ TidyProvider disableUnusableChecks(llvm::ArrayRef<std::string> ExtraBadChecks) {
 
                        // Check relies on seeing ifndef/define/endif directives,
                        // clangd doesn't replay those when using a preamble.
-                       "-llvm-header-guard",
+                       "-llvm-header-guard", "-modernize-macro-to-enum",
 
                        // ----- Crashing Checks -----