You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Revert "[Clang] improve -Wstring-concatenation to warn on every missing comma in initializer lists" (#154369)
Revert #154018 changes due to excessive _false
positives_. The warning caused multiple benign reports in large
codebases (e.g. _Linux kernel_, _Fuchsia_, _tcpdump_). Since many of
these concatenations are intentional and follow project style rules, the
diagnostic introduced more false positives than value. This will be
revisited as a potential `clang-tidy` check instead.
"2"// expected-note {{place parentheses around the string literal to silence warning}}
175
-
"3", // expected-warning {{suspicious concatenation of string literals in an array initialization; did you mean to separate the elements with a comma?}}
176
-
"4",
177
-
"5",
178
-
"6"// expected-note {{place parentheses around the string literal to silence warning}}
179
-
"7", // expected-warning {{suspicious concatenation of string literals in an array initialization; did you mean to separate the elements with a comma?}}
180
-
"8",
181
-
"9",
182
-
"10",
183
-
"11",
184
-
};
185
-
186
-
constchar*multiple_missing_commas2[] = {
187
-
"1",
188
-
"2"
189
-
"3"
190
-
"4"
191
-
"5",
192
-
"6"// expected-note {{place parentheses around the string literal to silence warning}}
193
-
"7", // expected-warning {{suspicious concatenation of string literals in an array initialization; did you mean to separate the elements with a comma?}}
0 commit comments