Issue |
153745
|
Summary |
`-Wstring-concatenation` seems insufficiently alarmist
|
Labels |
new issue
|
Assignees |
|
Reporter |
r-barnes
|
```
int main()
{
// Or this one
const char* v3[] = {
"One",
"Two"
"Three",
"Four",
"Five",
"Six"
"Seven",
"Eight"
"Nine",
"Ten",
"Eleven",
};
}
```
does not raise a `-Wstring-concatenation` warning because two commas are missing ([godbolt](https://godbolt.org/z/K4ef7GY8h)).
Perhaps a better heuristic for `-Wstring-concatenation` is "if strings on either side of me are delimited by commas, I should probably have one as well".
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs