[PATCH] D115650: [clangd] Disable support for clang-tidy suppression blocks (NOLINTBEGIN)
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 15 01:58:45 PST 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG529833377ccd: [clangd] Disable support for clang-tidy suppression blocks (NOLINTBEGIN) (authored by sammccall).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115650/new/
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.394494.patch
Type: text/x-patch
Size: 770 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211215/17560661/attachment-0001.bin>
More information about the cfe-commits
mailing list