[clang] 0fef780 - [Clang] Avoid whitespace in fixit note
Dávid Bolvanský via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 8 10:34:21 PDT 2020
Author: Dávid Bolvanský
Date: 2020-08-08T19:34:07+02:00
New Revision: 0fef780aa70b48551ae6df373955b5e4f5130fa4
URL: https://github.com/llvm/llvm-project/commit/0fef780aa70b48551ae6df373955b5e4f5130fa4
DIFF: https://github.com/llvm/llvm-project/commit/0fef780aa70b48551ae6df373955b5e4f5130fa4.diff
LOG: [Clang] Avoid whitespace in fixit note
Added:
Modified:
clang/lib/Sema/SemaExpr.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index e86c5b919698..7560dc996b15 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -6915,7 +6915,7 @@ Sema::ActOnInitList(SourceLocation LBraceLoc, MultiExprArg InitArgList,
SmallVector<FixItHint, 1> Hints;
for (unsigned i = 0; i < NumConcat - 1; ++i)
Hints.push_back(FixItHint::CreateInsertion(
- PP.getLocForEndOfToken(SL->getStrTokenLoc(i)), ", "));
+ PP.getLocForEndOfToken(SL->getStrTokenLoc(i)), ","));
Diag(SL->getStrTokenLoc(1), diag::warn_concatenated_literal_array_init)
<< Hints;
More information about the cfe-commits
mailing list