-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Open
Labels
clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerfalse-negativeWarning doesn't fire when it shouldWarning doesn't fire when it should
Description
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).
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".
AaronBallman
Metadata
Metadata
Assignees
Labels
clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerfalse-negativeWarning doesn't fire when it shouldWarning doesn't fire when it should