[clang] 9658647 - [AST] Fixed string concatenation warnings
Dávid Bolvanský via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 9 14:09:35 PDT 2020
Author: Dávid Bolvanský
Date: 2020-08-09T23:09:19+02:00
New Revision: 9658647d72d24f339f8b8129da9f116c358f30d5
URL: https://github.com/llvm/llvm-project/commit/9658647d72d24f339f8b8129da9f116c358f30d5
DIFF: https://github.com/llvm/llvm-project/commit/9658647d72d24f339f8b8129da9f116c358f30d5.diff
LOG: [AST] Fixed string concatenation warnings
Added:
Modified:
clang/unittests/AST/CommentParser.cpp
Removed:
################################################################################
diff --git a/clang/unittests/AST/CommentParser.cpp b/clang/unittests/AST/CommentParser.cpp
index ba8b34ebcd38..0be01a554f72 100644
--- a/clang/unittests/AST/CommentParser.cpp
+++ b/clang/unittests/AST/CommentParser.cpp
@@ -628,40 +628,40 @@ TEST_F(CommentParserTest, Basic3) {
TEST_F(CommentParserTest, ParagraphSplitting1) {
const char *Sources[] = {
- "// Aaa\n"
+ ("// Aaa\n"
"//\n"
- "// Bbb",
+ "// Bbb"),
- "// Aaa\n"
+ ("// Aaa\n"
"// \n"
- "// Bbb",
+ "// Bbb"),
- "// Aaa\n"
+ ("// Aaa\n"
"//\t\n"
- "// Bbb",
+ "// Bbb"),
- "// Aaa\n"
+ ("// Aaa\n"
"//\n"
"//\n"
- "// Bbb",
+ "// Bbb"),
- "/**\n"
+ ("/**\n"
" Aaa\n"
"\n"
" Bbb\n"
- "*/",
+ "*/"),
- "/**\n"
+ ("/**\n"
" Aaa\n"
" \n"
" Bbb\n"
- "*/",
+ "*/"),
- "/**\n"
+ ("/**\n"
" Aaa\n"
"\t \n"
" Bbb\n"
- "*/",
+ "*/"),
};
for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) {
@@ -792,13 +792,13 @@ TEST_F(CommentParserTest, ParamCommand2) {
TEST_F(CommentParserTest, ParamCommand3) {
const char *Sources[] = {
- "// \\param aaa Bbb\n",
+ ("// \\param aaa Bbb\n",
"// \\param\n"
- "// aaa Bbb\n",
- "// \\param \n"
- "// aaa Bbb\n",
- "// \\param aaa\n"
- "// Bbb\n"
+ "// aaa Bbb\n"),
+ ("// \\param \n"
+ "// aaa Bbb\n"),
+ ("// \\param aaa\n"
+ "// Bbb\n")
};
for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) {
@@ -823,12 +823,12 @@ TEST_F(CommentParserTest, ParamCommand4) {
const char *Sources[] = {
"// \\param [in] aaa Bbb\n",
"// \\param[in] aaa Bbb\n",
- "// \\param\n"
- "// [in] aaa Bbb\n",
- "// \\param [in]\n"
- "// aaa Bbb\n",
- "// \\param [in] aaa\n"
- "// Bbb\n",
+ ("// \\param\n"
+ "// [in] aaa Bbb\n"),
+ ("// \\param [in]\n"
+ "// aaa Bbb\n"),
+ ("// \\param [in] aaa\n"
+ "// Bbb\n"),
};
for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) {
@@ -853,12 +853,12 @@ TEST_F(CommentParserTest, ParamCommand5) {
const char *Sources[] = {
"// \\param [out] aaa Bbb\n",
"// \\param[out] aaa Bbb\n",
- "// \\param\n"
- "// [out] aaa Bbb\n",
- "// \\param [out]\n"
- "// aaa Bbb\n",
- "// \\param [out] aaa\n"
- "// Bbb\n",
+ ("// \\param\n"
+ "// [out] aaa Bbb\n"),
+ ("// \\param [out]\n"
+ "// aaa Bbb\n"),
+ ("// \\param [out] aaa\n"
+ "// Bbb\n"),
};
for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) {
More information about the cfe-commits
mailing list