Lines Matching refs:AttrName

148       IdentifierInfo *AttrName = Tok.getIdentifierInfo();  in ParseGNUAttributes()  local
149 if (!AttrName) in ParseGNUAttributes()
155 attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, in ParseGNUAttributes()
161 if (!LateAttrs || !isAttributeLateParsed(*AttrName)) { in ParseGNUAttributes()
162 ParseGNUAttributeArgs(AttrName, AttrNameLoc, attrs, endLoc, nullptr, in ParseGNUAttributes()
169 new LateParsedAttribute(this, *AttrName, AttrNameLoc); in ParseGNUAttributes()
240 void Parser::ParseAttributeWithTypeArg(IdentifierInfo &AttrName, in ParseAttributeWithTypeArg() argument
261 Attrs.addNewTypeAttr(&AttrName, in ParseAttributeWithTypeArg()
265 Attrs.addNew(&AttrName, SourceRange(AttrNameLoc, Parens.getCloseLocation()), in ParseAttributeWithTypeArg()
270 IdentifierInfo *AttrName, SourceLocation AttrNameLoc, in ParseAttributeArgsCommon() argument
279 bool IsIdentifierArg = attributeHasIdentifierArg(*AttrName); in ParseAttributeArgsCommon()
281 AttributeList::getKind(AttrName, ScopeName, Syntax); in ParseAttributeArgsCommon()
303 if (attributeParsedArgsUnevaluated(*AttrName)) in ParseAttributeArgsCommon()
321 Attrs.addNew(AttrName, SourceRange(AttrLoc, RParen), ScopeName, ScopeLoc, in ParseAttributeArgsCommon()
333 void Parser::ParseGNUAttributeArgs(IdentifierInfo *AttrName, in ParseGNUAttributeArgs() argument
345 AttributeList::getKind(AttrName, ScopeName, Syntax); in ParseGNUAttributeArgs()
348 ParseAvailabilityAttribute(*AttrName, AttrNameLoc, Attrs, EndLoc, ScopeName, in ParseGNUAttributeArgs()
352 ParseObjCBridgeRelatedAttribute(*AttrName, AttrNameLoc, Attrs, EndLoc, in ParseGNUAttributeArgs()
356 ParseTypeTagForDatatypeAttribute(*AttrName, AttrNameLoc, Attrs, EndLoc, in ParseGNUAttributeArgs()
359 } else if (attributeIsTypeArgAttr(*AttrName)) { in ParseGNUAttributeArgs()
360 ParseAttributeWithTypeArg(*AttrName, AttrNameLoc, Attrs, EndLoc, ScopeName, in ParseGNUAttributeArgs()
368 if (AttrName->isStr("enable_if") && D && D->isFunctionDeclarator()) { in ParseGNUAttributeArgs()
379 ParseAttributeArgsCommon(AttrName, AttrNameLoc, Attrs, EndLoc, ScopeName, in ParseGNUAttributeArgs()
383 bool Parser::ParseMicrosoftDeclSpecArgs(IdentifierInfo *AttrName, in ParseMicrosoftDeclSpecArgs() argument
388 if (!hasAttribute(AttrSyntax::Declspec, nullptr, AttrName, in ParseMicrosoftDeclSpecArgs()
398 if (AttrName->getName() == "property") { in ParseMicrosoftDeclSpecArgs()
405 AttrName->getNameStart(), tok::r_paren); in ParseMicrosoftDeclSpecArgs()
505 Attrs.addNewPropertyAttr(AttrName, AttrNameLoc, nullptr, SourceLocation(), in ParseMicrosoftDeclSpecArgs()
513 ParseAttributeArgsCommon(AttrName, AttrNameLoc, Attrs, nullptr, nullptr, in ParseMicrosoftDeclSpecArgs()
520 Diag(OpenParenLoc, diag::err_attribute_requires_arguments) << AttrName; in ParseMicrosoftDeclSpecArgs()
558 IdentifierInfo *AttrName; in ParseMicrosoftDeclSpec() local
568 AttrName = PP.getIdentifierInfo(Str); in ParseMicrosoftDeclSpec()
571 AttrName = Tok.getIdentifierInfo(); in ParseMicrosoftDeclSpec()
579 AttrHandled = ParseMicrosoftDeclSpecArgs(AttrName, AttrNameLoc, Attrs); in ParseMicrosoftDeclSpec()
580 else if (AttrName->getName() == "property") in ParseMicrosoftDeclSpec()
583 << AttrName->getName(); in ParseMicrosoftDeclSpec()
586 Attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, in ParseMicrosoftDeclSpec()
607 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseMicrosoftTypeAttributes() local
609 attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, in ParseMicrosoftTypeAttributes()
658 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseBorlandTypeAttributes() local
660 attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, in ParseBorlandTypeAttributes()
668 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseOpenCLAttributes() local
670 attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, in ParseOpenCLAttributes()
676 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseOpenCLQualifiers() local
678 Attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, in ParseOpenCLQualifiers()
1191 ParseGNUAttributeArgs(&LA.AttrName, LA.AttrNameLoc, Attrs, &endLoc, in ParseLexedAttribute()
1205 ParseGNUAttributeArgs(&LA.AttrName, LA.AttrNameLoc, Attrs, &endLoc, in ParseLexedAttribute()
1210 Diag(Tok, diag::warn_attribute_no_decl) << LA.AttrName.getName(); in ParseLexedAttribute()
1217 << &LA.AttrName; in ParseLexedAttribute()
1231 void Parser::ParseTypeTagForDatatypeAttribute(IdentifierInfo &AttrName, in ParseTypeTagForDatatypeAttribute() argument
1284 Attrs.addNewTypeTagForDatatype(&AttrName, AttrNameLoc, ScopeName, ScopeLoc, in ParseTypeTagForDatatypeAttribute()
2965 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseDeclarationSpecifiers() local
2967 DS.getAttributes().addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, in ParseDeclarationSpecifiers()