Skip to content

Commit

Permalink
[clangd] Disable modernize-macro-to-enum tidy check
Browse files Browse the repository at this point in the history
Check relies on seeing PP-directives from preamble, hence it's unusable.
See clangd/clangd#1464.
  • Loading branch information
kadircet committed Jan 17, 2023
1 parent 61bb549 commit 2486c8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang-tools-extra/clangd/TidyProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 -----

Expand Down

0 comments on commit 2486c8d

Please sign in to comment.