We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f8cab6 commit d6ad67dCopy full SHA for d6ad67d
clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
@@ -62,8 +62,7 @@ class ClangTidyDiagnosticRenderer : public DiagnosticRenderer {
62
// appending the check name to the message in ClangTidyContext::diag and
63
// using getCustomDiagID.
64
std::string CheckNameInMessage = " [" + Error.DiagnosticName + "]";
65
- if (Message.ends_with(CheckNameInMessage))
66
- Message = Message.substr(0, Message.size() - CheckNameInMessage.size());
+ Message.consume_back(CheckNameInMessage);
67
68
auto TidyMessage =
69
Loc.isValid()
0 commit comments