[PATCH] D115650: [clangd] Disable support for clang-tidy suppression blocks (NOLINTBEGIN)
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 13 10:16:43 PST 2021
sammccall created this revision.
sammccall added a reviewer: kadircet.
Herald added subscribers: usaxena95, arphaman.
sammccall requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov.
Herald added a project: clang-tools-extra.
The implementation is very inefficient and we pay the cost even when the feature is not used
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D115650
Files:
clang-tools-extra/clangd/ParsedAST.cpp
Index: clang-tools-extra/clangd/ParsedAST.cpp
===================================================================
--- clang-tools-extra/clangd/ParsedAST.cpp
+++ clang-tools-extra/clangd/ParsedAST.cpp
@@ -395,7 +395,8 @@
if (IsInsideMainFile &&
tidy::shouldSuppressDiagnostic(DiagLevel, Info, *CTContext,
TidySuppressedErrors,
- /*AllowIO=*/false)) {
+ /*AllowIO=*/false,
+ /*EnableNolintBlocks=*/false)) {
// FIXME: should we expose the suppression error (invalid use of
// NOLINT comments)?
return DiagnosticsEngine::Ignored;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115650.393955.patch
Type: text/x-patch
Size: 770 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211213/7a02f502/attachment.bin>
More information about the cfe-commits
mailing list