diff options
author | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2015-03-24 13:02:47 +0000 |
---|---|---|
committer | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2015-03-24 13:02:47 +0000 |
commit | 9a7adfcf3ac0be7fb1d3954226249a9269b94804 (patch) | |
tree | c8b0730c5d2321610d8cd728741be335efe03444 /clang/lib/Parse/ParseDecl.cpp | |
parent | 29704e7fb425a9cdf0e134996be3c0302a71feed (diff) | |
download | bcm5719-llvm-9a7adfcf3ac0be7fb1d3954226249a9269b94804.tar.gz bcm5719-llvm-9a7adfcf3ac0be7fb1d3954226249a9269b94804.zip |
Diagnose declspecs occuring after virt-specifier-seq and generate fixit hints
Summary: This fixes PR22075.
Reviewers: rsmith
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D6828
llvm-svn: 233069
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r-- | clang/lib/Parse/ParseDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index b4a76642981..c19759e596c 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/lib/Parse/ParseDecl.cpp @@ -5329,7 +5329,7 @@ void Parser::ParseFunctionDeclarator(Declarator &D, if (getLangOpts().CPlusPlus) { // FIXME: Accept these components in any order, and produce fixits to // correct the order if the user gets it wrong. Ideally we should deal - // with the virt-specifier-seq and pure-specifier in the same way. + // with the pure-specifier in the same way. // Parse cv-qualifier-seq[opt]. ParseTypeQualifierListOpt(DS, AR_NoAttributesParsed, |