diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-02 12:01:23 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-02 12:01:23 +0000 |
commit | 89645bc88866097101329d7f87dcfc57299e8b37 (patch) | |
tree | 3c0227bbdab3ea861de95bd6dc579b9db921511f /clang/lib/Parse/ParseDecl.cpp | |
parent | 005f27a0d39047acb7085e19a7b3d57c3be6ed41 (diff) | |
download | bcm5719-llvm-89645bc88866097101329d7f87dcfc57299e8b37.tar.gz bcm5719-llvm-89645bc88866097101329d7f87dcfc57299e8b37.zip |
s/CXX0X/CXX11/g, except for __GNU_EXPERIMENTAL_CXX0X__, and update a few nearby 'C++0x' comments.
llvm-svn: 171372
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r-- | clang/lib/Parse/ParseDecl.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index ac02a2ed2fd..fe920506949 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/lib/Parse/ParseDecl.cpp @@ -1146,7 +1146,7 @@ void Parser::DiagnoseProhibitedAttributes(ParsedAttributesWithRange &attrs) { void Parser::ProhibitCXX11Attributes(ParsedAttributesWithRange &attrs) { AttributeList *AttrList = attrs.getList(); while (AttrList) { - if (AttrList->isCXX0XAttribute()) { + if (AttrList->isCXX11Attribute()) { Diag(AttrList->getLoc(), diag::warn_attribute_no_decl) << AttrList->getName(); AttrList->setInvalid(); @@ -1318,7 +1318,7 @@ bool Parser::MightBeDeclarator(unsigned Context) { (getLangOpts().CPlusPlus && Context == Declarator::FileContext); case tok::identifier: // Possible virt-specifier. - return getLangOpts().CPlusPlus11 && isCXX0XVirtSpecifier(NextToken()); + return getLangOpts().CPlusPlus11 && isCXX11VirtSpecifier(NextToken()); default: return false; @@ -3145,7 +3145,7 @@ void Parser::ParseEnumSpecifier(SourceLocation StartLoc, DeclSpec &DS, // If attributes exist after tag, parse them. ParsedAttributesWithRange attrs(AttrFactory); MaybeParseGNUAttributes(attrs); - MaybeParseCXX0XAttributes(attrs); + MaybeParseCXX11Attributes(attrs); // If declspecs exist after tag, parse them. while (Tok.is(tok::kw___declspec)) @@ -3167,7 +3167,7 @@ void Parser::ParseEnumSpecifier(SourceLocation StartLoc, DeclSpec &DS, // They are allowed afterwards, though. MaybeParseGNUAttributes(attrs); - MaybeParseCXX0XAttributes(attrs); + MaybeParseCXX11Attributes(attrs); while (Tok.is(tok::kw___declspec)) ParseMicrosoftDeclSpec(attrs); } @@ -3485,7 +3485,7 @@ void Parser::ParseEnumBody(SourceLocation StartLoc, Decl *EnumDecl) { // If attributes exist after the enumerator, parse them. ParsedAttributesWithRange attrs(AttrFactory); MaybeParseGNUAttributes(attrs); - MaybeParseCXX0XAttributes(attrs); + MaybeParseCXX11Attributes(attrs); ProhibitAttributes(attrs); SourceLocation EqualLoc; @@ -4028,7 +4028,7 @@ bool Parser::isConstructorDeclarator() { /// [vendor] type-qualifier-list attributes /// [ only if VendorAttributesAllowed=true ] /// [C++0x] attribute-specifier[opt] is allowed before cv-qualifier-seq -/// [ only if CXX0XAttributesAllowed=true ] +/// [ only if CXX11AttributesAllowed=true ] /// Note: vendor can be GNU, MS, etc. /// void Parser::ParseTypeQualifierListOpt(DeclSpec &DS, @@ -4493,7 +4493,7 @@ void Parser::ParseDirectDeclarator(Declarator &D) { // Don't parse attributes unless we have parsed an unparenthesized name. if (D.hasName() && !D.getNumTypeObjects()) - MaybeParseCXX0XAttributes(D); + MaybeParseCXX11Attributes(D); while (1) { if (Tok.is(tok::l_paren)) { @@ -4770,7 +4770,7 @@ void Parser::ParseFunctionDeclarator(Declarator &D, // Parse attribute-specifier-seq[opt]. Per DR 979 and DR 1297, this goes // after the exception-specification. - MaybeParseCXX0XAttributes(FnAttrs); + MaybeParseCXX11Attributes(FnAttrs); // Parse trailing-return-type[opt]. LocalEndLoc = EndLoc; @@ -4945,7 +4945,7 @@ void Parser::ParseParameterDeclarationClause( DeclSpec DS(AttrFactory); // Parse any C++11 attributes. - MaybeParseCXX0XAttributes(DS.getAttributes()); + MaybeParseCXX11Attributes(DS.getAttributes()); // Skip any Microsoft attributes before a param. MaybeParseMicrosoftAttributes(DS.getAttributes()); @@ -5095,7 +5095,7 @@ void Parser::ParseBracketDeclarator(Declarator &D) { if (Tok.getKind() == tok::r_square) { T.consumeClose(); ParsedAttributes attrs(AttrFactory); - MaybeParseCXX0XAttributes(attrs); + MaybeParseCXX11Attributes(attrs); // Remember that we parsed the empty array type. ExprResult NumElements; @@ -5112,7 +5112,7 @@ void Parser::ParseBracketDeclarator(Declarator &D) { T.consumeClose(); ParsedAttributes attrs(AttrFactory); - MaybeParseCXX0XAttributes(attrs); + MaybeParseCXX11Attributes(attrs); // Remember that we parsed a array type, and remember its features. D.AddTypeInfo(DeclaratorChunk::getArray(0, false, 0, @@ -5182,7 +5182,7 @@ void Parser::ParseBracketDeclarator(Declarator &D) { T.consumeClose(); ParsedAttributes attrs(AttrFactory); - MaybeParseCXX0XAttributes(attrs); + MaybeParseCXX11Attributes(attrs); // Remember that we parsed a array type, and remember its features. D.AddTypeInfo(DeclaratorChunk::getArray(DS.getTypeQualifiers(), |