instead of a semicolon (as sometimes happens during refactorings). When such a comma is seen at the end of a line, and is followed by something which can't possibly be a declarator (or even something which might be a plausible typo for a declarator), suggest that a semicolon was intended. llvm-svn: 142544
9 lines
190 B
C++
9 lines
190 B
C++
// RUN: %clang_cc1 -verify -fsyntax-only -std=c++0x %s
|
|
|
|
// Make sure we know these are legitimate commas and not typos for ';'.
|
|
namespace Commas {
|
|
int a,
|
|
b [[ ]],
|
|
c alignas(double);
|
|
}
|