[clangd] Disable modernize-macro-to-enum tidy check

Check relies on seeing PP-directives from preamble, hence it's unusable.
See https://github.com/clangd/clangd/issues/1464.
This commit is contained in:
Kadir Cetinkaya 2023-01-17 17:11:02 +01:00
parent 61bb549cfd
commit 2486c8d7bb
No known key found for this signature in database
GPG Key ID: E39E36B8D2057ED6

View 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 -----