summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-01-26 20:35:32 +0000
committerDouglas Gregor <dgregor@apple.com>2011-01-26 20:35:32 +0000
commita52713096d31eb73af5c1b420abbb6c9aad5880c (patch)
tree115b4af34fb8f55baaf6118c9206bcc914ed5fbd /clang/lib/Parse/ParseDecl.cpp
parent5143d646b93337a346daf7b3d3ecb3c2a926586e (diff)
downloadbcm5719-llvm-a52713096d31eb73af5c1b420abbb6c9aad5880c.tar.gz
bcm5719-llvm-a52713096d31eb73af5c1b420abbb6c9aad5880c.zip
Improve the extension warning for the use of ref-qualifiers, to
distinguish them from rvalue references. Using the rvalue-references warning was weird when the ref-qualifier was '&'. llvm-svn: 124316
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r--clang/lib/Parse/ParseDecl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp
index 29f9921217d..c4fce66b657 100644
--- a/clang/lib/Parse/ParseDecl.cpp
+++ b/clang/lib/Parse/ParseDecl.cpp
@@ -3102,7 +3102,7 @@ void Parser::ParseFunctionDeclarator(SourceLocation LParenLoc, Declarator &D,
// Parse ref-qualifier[opt]
if (Tok.is(tok::amp) || Tok.is(tok::ampamp)) {
if (!getLang().CPlusPlus0x)
- Diag(Tok, diag::ext_rvalue_reference);
+ Diag(Tok, diag::ext_ref_qualifier);
RefQualifierIsLValueRef = Tok.is(tok::amp);
RefQualifierLoc = ConsumeToken();
@@ -3353,7 +3353,7 @@ void Parser::ParseFunctionDeclarator(SourceLocation LParenLoc, Declarator &D,
// Parse ref-qualifier[opt]
if (Tok.is(tok::amp) || Tok.is(tok::ampamp)) {
if (!getLang().CPlusPlus0x)
- Diag(Tok, diag::ext_rvalue_reference);
+ Diag(Tok, diag::ext_ref_qualifier);
RefQualifierIsLValueRef = Tok.is(tok::amp);
RefQualifierLoc = ConsumeToken();
OpenPOWER on IntegriCloud