[clang] [clang-format] Preserve trailing NOLINTEND placement with SeparateDefinitionBlocks (PR #190741)
Jiaqi He via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 7 17:48:54 PDT 2026
================
@@ -4768,5 +4768,25 @@ bool isClangFormatOff(StringRef Comment) {
return isClangFormatOnOff(Comment, /*On=*/false);
}
+static bool isNoLintBeginEnd(StringRef Comment, bool On) {
+ if (Comment == (On ? "/* NOLINTBEGIN */" : "/* NOLINTEND */"))
----------------
heturing wrote:
I have narrowed the change to only handle `// NOLINTEND`.
https://github.com/llvm/llvm-project/pull/190741
More information about the cfe-commits
mailing list