• Home
  • Raw
  • Download

Lines Matching refs:AttrName

150       IdentifierInfo *AttrName = Tok.getIdentifierInfo();  in ParseGNUAttributes()  local
151 if (!AttrName) in ParseGNUAttributes()
157 attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, in ParseGNUAttributes()
163 if (!LateAttrs || !isAttributeLateParsed(*AttrName)) { in ParseGNUAttributes()
164 ParseGNUAttributeArgs(AttrName, AttrNameLoc, attrs, endLoc, nullptr, in ParseGNUAttributes()
171 new LateParsedAttribute(this, *AttrName, AttrNameLoc); in ParseGNUAttributes()
242 void Parser::ParseAttributeWithTypeArg(IdentifierInfo &AttrName, in ParseAttributeWithTypeArg() argument
263 Attrs.addNewTypeAttr(&AttrName, in ParseAttributeWithTypeArg()
267 Attrs.addNew(&AttrName, SourceRange(AttrNameLoc, Parens.getCloseLocation()), in ParseAttributeWithTypeArg()
272 IdentifierInfo *AttrName, SourceLocation AttrNameLoc, in ParseAttributeArgsCommon() argument
281 bool IsIdentifierArg = attributeHasIdentifierArg(*AttrName); in ParseAttributeArgsCommon()
283 AttributeList::getKind(AttrName, ScopeName, Syntax); in ParseAttributeArgsCommon()
305 if (attributeParsedArgsUnevaluated(*AttrName)) in ParseAttributeArgsCommon()
323 Attrs.addNew(AttrName, SourceRange(AttrLoc, RParen), ScopeName, ScopeLoc, in ParseAttributeArgsCommon()
335 void Parser::ParseGNUAttributeArgs(IdentifierInfo *AttrName, in ParseGNUAttributeArgs() argument
347 AttributeList::getKind(AttrName, ScopeName, Syntax); in ParseGNUAttributeArgs()
350 ParseAvailabilityAttribute(*AttrName, AttrNameLoc, Attrs, EndLoc, ScopeName, in ParseGNUAttributeArgs()
354 ParseObjCBridgeRelatedAttribute(*AttrName, AttrNameLoc, Attrs, EndLoc, in ParseGNUAttributeArgs()
358 ParseTypeTagForDatatypeAttribute(*AttrName, AttrNameLoc, Attrs, EndLoc, in ParseGNUAttributeArgs()
361 } else if (attributeIsTypeArgAttr(*AttrName)) { in ParseGNUAttributeArgs()
362 ParseAttributeWithTypeArg(*AttrName, AttrNameLoc, Attrs, EndLoc, ScopeName, in ParseGNUAttributeArgs()
370 if (normalizeAttrName(AttrName->getName()) == "enable_if" && in ParseGNUAttributeArgs()
382 ParseAttributeArgsCommon(AttrName, AttrNameLoc, Attrs, EndLoc, ScopeName, in ParseGNUAttributeArgs()
386 bool Parser::ParseMicrosoftDeclSpecArgs(IdentifierInfo *AttrName, in ParseMicrosoftDeclSpecArgs() argument
391 if (!hasAttribute(AttrSyntax::Declspec, nullptr, AttrName, in ParseMicrosoftDeclSpecArgs()
401 if (AttrName->getName() == "property") { in ParseMicrosoftDeclSpecArgs()
408 AttrName->getNameStart(), tok::r_paren); in ParseMicrosoftDeclSpecArgs()
508 Attrs.addNewPropertyAttr(AttrName, AttrNameLoc, nullptr, SourceLocation(), in ParseMicrosoftDeclSpecArgs()
516 ParseAttributeArgsCommon(AttrName, AttrNameLoc, Attrs, nullptr, nullptr, in ParseMicrosoftDeclSpecArgs()
523 Diag(OpenParenLoc, diag::err_attribute_requires_arguments) << AttrName; in ParseMicrosoftDeclSpecArgs()
564 IdentifierInfo *AttrName; in ParseMicrosoftDeclSpecs() local
574 AttrName = PP.getIdentifierInfo(Str); in ParseMicrosoftDeclSpecs()
577 AttrName = Tok.getIdentifierInfo(); in ParseMicrosoftDeclSpecs()
585 AttrHandled = ParseMicrosoftDeclSpecArgs(AttrName, AttrNameLoc, Attrs); in ParseMicrosoftDeclSpecs()
586 else if (AttrName->getName() == "property") in ParseMicrosoftDeclSpecs()
589 << AttrName->getName(); in ParseMicrosoftDeclSpecs()
592 Attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, in ParseMicrosoftDeclSpecs()
615 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseMicrosoftTypeAttributes() local
617 attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, in ParseMicrosoftTypeAttributes()
666 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseBorlandTypeAttributes() local
668 attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, in ParseBorlandTypeAttributes()
676 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseOpenCLKernelAttributes() local
678 attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, in ParseOpenCLKernelAttributes()
684 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseOpenCLQualifiers() local
686 Attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, in ParseOpenCLQualifiers()
697 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseNullabilityTypeSpecifiers() local
701 << AttrName; in ParseNullabilityTypeSpecifiers()
702 attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, in ParseNullabilityTypeSpecifiers()
1250 ParseGNUAttributeArgs(&LA.AttrName, LA.AttrNameLoc, Attrs, &endLoc, in ParseLexedAttribute()
1264 ParseGNUAttributeArgs(&LA.AttrName, LA.AttrNameLoc, Attrs, &endLoc, in ParseLexedAttribute()
1269 Diag(Tok, diag::warn_attribute_no_decl) << LA.AttrName.getName(); in ParseLexedAttribute()
1276 << &LA.AttrName; in ParseLexedAttribute()
1290 void Parser::ParseTypeTagForDatatypeAttribute(IdentifierInfo &AttrName, in ParseTypeTagForDatatypeAttribute() argument
1343 Attrs.addNewTypeTagForDatatype(&AttrName, AttrNameLoc, ScopeName, ScopeLoc, in ParseTypeTagForDatatypeAttribute()
3099 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseDeclarationSpecifiers() local
3101 DS.getAttributes().addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, in ParseDeclarationSpecifiers()