Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HerrCai0907 committed Sep 12, 2024
1 parent f0cdfb4 commit 65f072d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clang-tools-extra/clang-tidy/performance/AvoidEndlCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ void AvoidEndlCheck::check(const MatchFinder::MatchResult &Result) {
if (SourceText.empty())
SourceText = "std::endl";
auto Builder = diag(Expression->getBeginLoc(),
"do not use '%0' with streams; use '\\n' instead");
"do not use '%0' with streams; use '\\n' instead")
<< SourceText;
if (TokenRange.isValid())
Builder << SourceText
<< FixItHint::CreateReplacement(TokenRange, "'\\n'");
Builder << FixItHint::CreateReplacement(TokenRange, "'\\n'");
} else {
// Handle the less common function call 'std::endl(...)' case
const auto *CallExpression = llvm::cast<CallExpr>(Expression);
Expand Down

0 comments on commit 65f072d

Please sign in to comment.