salman-javed-nz updated this revision to Diff 386047.
salman-javed-nz added a comment.
Revert to using simple string literals. I was being too clever for my own good
with the Twine.
I think this should no longer cause ASan issues. WDYT?
This was meant to be a simple patch, so sorry for all the trouble.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113472/new/
https://reviews.llvm.org/D113472
Files:
clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
Index: clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
===================================================================
--- clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
+++ clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
@@ -376,10 +376,10 @@
Context.getCurrentBuildDirectory(), false);
StringRef Message =
IsNolintBegin
- ? "unmatched 'NOLINTBEGIN' comment without a subsequent 'NOLINTEND' "
- "comment"
- : "unmatched 'NOLINTEND' comment without a previous 'NOLINTBEGIN' "
- "comment";
+ ? ("unmatched 'NOLINTBEGIN' comment without a subsequent 'NOLINT"
+ "END' comment")
+ : ("unmatched 'NOLINTEND' comment without a previous 'NOLINT"
+ "BEGIN' comment");
Error.Message = tooling::DiagnosticMessage(Message, SM, Loc);
return Error;
}
Index: clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
===================================================================
--- clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
+++ clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
@@ -376,10 +376,10 @@
Context.getCurrentBuildDirectory(), false);
StringRef Message =
IsNolintBegin
- ? "unmatched 'NOLINTBEGIN' comment without a subsequent 'NOLINTEND' "
- "comment"
- : "unmatched 'NOLINTEND' comment without a previous 'NOLINTBEGIN' "
- "comment";
+ ? ("unmatched 'NOLINTBEGIN' comment without a subsequent 'NOLINT"
+ "END' comment")
+ : ("unmatched 'NOLINTEND' comment without a previous 'NOLINT"
+ "BEGIN' comment");
Error.Message = tooling::DiagnosticMessage(Message, SM, Loc);
return Error;
}
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits