From: Aaron Ballman Date: Mon, 13 Jan 2014 21:40:16 +0000 (+0000) Subject: __forceinline is a keyword, and not a GNU-style attribute. This FIXME appears to... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c7a44feb4b47ebf9fd94b33879b4df6ccc7c48b;p=clang __forceinline is a keyword, and not a GNU-style attribute. This FIXME appears to be out-dated, and the attribute syntax is becoming more important these days. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199143 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp index 9835e249b1..7af1d93a6f 100644 --- a/lib/Parse/ParseDecl.cpp +++ b/lib/Parse/ParseDecl.cpp @@ -2907,10 +2907,8 @@ void Parser::ParseDeclarationSpecifiers(DeclSpec &DS, isInvalid = DS.setFunctionSpecForceInline(Loc, PrevSpec, DiagID); IdentifierInfo *AttrName = Tok.getIdentifierInfo(); SourceLocation AttrNameLoc = Tok.getLocation(); - // FIXME: This does not work correctly if it is set to be a declspec - // attribute, and a GNU attribute is simply incorrect. DS.getAttributes().addNew(AttrName, AttrNameLoc, 0, AttrNameLoc, 0, 0, - AttributeList::AS_GNU); + AttributeList::AS_Keyword); break; }