Skip to content

Commit 5298333

Browse files
committed
[clangd] Disable support for clang-tidy suppression blocks (NOLINTBEGIN)
The implementation is very inefficient and we pay the cost even when the feature is not used Differential Revision: https://reviews.llvm.org/D115650
1 parent a908ca6 commit 5298333

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang-tools-extra/clangd/ParsedAST.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,8 @@ ParsedAST::build(llvm::StringRef Filename, const ParseInputs &Inputs,
395395
if (IsInsideMainFile &&
396396
tidy::shouldSuppressDiagnostic(DiagLevel, Info, *CTContext,
397397
TidySuppressedErrors,
398-
/*AllowIO=*/false)) {
398+
/*AllowIO=*/false,
399+
/*EnableNolintBlocks=*/false)) {
399400
// FIXME: should we expose the suppression error (invalid use of
400401
// NOLINT comments)?
401402
return DiagnosticsEngine::Ignored;

0 commit comments

Comments
 (0)