summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan.akhgari@gmail.com>2015-03-24 13:02:47 +0000
committerEhsan Akhgari <ehsan.akhgari@gmail.com>2015-03-24 13:02:47 +0000
commit9a7adfcf3ac0be7fb1d3954226249a9269b94804 (patch)
treec8b0730c5d2321610d8cd728741be335efe03444 /clang/lib/Parse/ParseDecl.cpp
parent29704e7fb425a9cdf0e134996be3c0302a71feed (diff)
downloadbcm5719-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.cpp2
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,
OpenPOWER on IntegriCloud