diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-01-09 22:31:44 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-01-09 22:31:44 +0000 |
commit | 1c94c16317c1a35c1549e022958188eea2567089 (patch) | |
tree | df3c9667a969fdc0872a1ca42c5d2c54dd9fba04 /include | |
parent | d1d512a9cd1923566a52e57b7e1e8ae65392f66b (diff) |
Extend the diagnostic for a ',' at the end of a declaration where a ';' was
intended to cover C++ class definitions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147808 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/Parse/Parser.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/clang/Parse/Parser.h b/include/clang/Parse/Parser.h index fca56a8eb8..31b5022166 100644 --- a/include/clang/Parse/Parser.h +++ b/include/clang/Parse/Parser.h @@ -1924,7 +1924,10 @@ private: void ParseAlignmentSpecifier(ParsedAttributes &Attrs, SourceLocation *endLoc = 0); - VirtSpecifiers::Specifier isCXX0XVirtSpecifier() const; + VirtSpecifiers::Specifier isCXX0XVirtSpecifier(const Token &Tok) const; + VirtSpecifiers::Specifier isCXX0XVirtSpecifier() const { + return isCXX0XVirtSpecifier(Tok); + } void ParseOptionalCXX0XVirtSpecifierSeq(VirtSpecifiers &VS); bool isCXX0XFinalKeyword() const; |