• Home
  • Raw
  • Download

Lines Matching refs:AttrName

176       IdentifierInfo *AttrName = Tok.getIdentifierInfo();  in ParseGNUAttributes()  local
177 if (!AttrName) in ParseGNUAttributes()
183 attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, in ParseGNUAttributes()
189 if (!LateAttrs || !isAttributeLateParsed(*AttrName)) { in ParseGNUAttributes()
190 ParseGNUAttributeArgs(AttrName, AttrNameLoc, attrs, endLoc, nullptr, in ParseGNUAttributes()
197 new LateParsedAttribute(this, *AttrName, AttrNameLoc); in ParseGNUAttributes()
302 void Parser::ParseAttributeWithTypeArg(IdentifierInfo &AttrName, in ParseAttributeWithTypeArg() argument
323 Attrs.addNewTypeAttr(&AttrName, in ParseAttributeWithTypeArg()
327 Attrs.addNew(&AttrName, SourceRange(AttrNameLoc, Parens.getCloseLocation()), in ParseAttributeWithTypeArg()
332 IdentifierInfo *AttrName, SourceLocation AttrNameLoc, in ParseAttributeArgsCommon() argument
338 bool ChangeKWThisToIdent = attributeTreatsKeywordThisAsIdentifier(*AttrName); in ParseAttributeArgsCommon()
339 bool AttributeIsTypeArgAttr = attributeIsTypeArgAttr(*AttrName); in ParseAttributeArgsCommon()
348 bool IsIdentifierArg = attributeHasIdentifierArg(*AttrName) || in ParseAttributeArgsCommon()
349 attributeHasVariadicIdentifierArg(*AttrName); in ParseAttributeArgsCommon()
351 ParsedAttr::getParsedKind(AttrName, ScopeName, Syntax); in ParseAttributeArgsCommon()
388 attributeHasVariadicIdentifierArg(*AttrName)) { in ParseAttributeArgsCommon()
391 bool Uneval = attributeParsedArgsUnevaluated(*AttrName); in ParseAttributeArgsCommon()
414 Attrs.addNewTypeAttr(AttrName, SourceRange(AttrNameLoc, RParen), in ParseAttributeArgsCommon()
417 Attrs.addNew(AttrName, SourceRange(AttrLoc, RParen), ScopeName, ScopeLoc, in ParseAttributeArgsCommon()
430 void Parser::ParseGNUAttributeArgs(IdentifierInfo *AttrName, in ParseGNUAttributeArgs() argument
442 ParsedAttr::getParsedKind(AttrName, ScopeName, Syntax); in ParseGNUAttributeArgs()
445 ParseAvailabilityAttribute(*AttrName, AttrNameLoc, Attrs, EndLoc, ScopeName, in ParseGNUAttributeArgs()
449 ParseExternalSourceSymbolAttribute(*AttrName, AttrNameLoc, Attrs, EndLoc, in ParseGNUAttributeArgs()
453 ParseObjCBridgeRelatedAttribute(*AttrName, AttrNameLoc, Attrs, EndLoc, in ParseGNUAttributeArgs()
457 ParseSwiftNewTypeAttribute(*AttrName, AttrNameLoc, Attrs, EndLoc, ScopeName, in ParseGNUAttributeArgs()
461 ParseTypeTagForDatatypeAttribute(*AttrName, AttrNameLoc, Attrs, EndLoc, in ParseGNUAttributeArgs()
464 } else if (attributeIsTypeArgAttr(*AttrName)) { in ParseGNUAttributeArgs()
465 ParseAttributeWithTypeArg(*AttrName, AttrNameLoc, Attrs, EndLoc, ScopeName, in ParseGNUAttributeArgs()
473 if (normalizeAttrName(AttrName->getName()) == "enable_if" && in ParseGNUAttributeArgs()
485 ParseAttributeArgsCommon(AttrName, AttrNameLoc, Attrs, EndLoc, ScopeName, in ParseGNUAttributeArgs()
490 IdentifierInfo *AttrName, SourceLocation AttrNameLoc, in ParseClangAttributeArgs() argument
496 ParsedAttr::getParsedKind(AttrName, ScopeName, Syntax); in ParseClangAttributeArgs()
500 return ParseAttributeArgsCommon(AttrName, AttrNameLoc, Attrs, EndLoc, in ParseClangAttributeArgs()
503 ParseExternalSourceSymbolAttribute(*AttrName, AttrNameLoc, Attrs, EndLoc, in ParseClangAttributeArgs()
507 ParseAvailabilityAttribute(*AttrName, AttrNameLoc, Attrs, EndLoc, ScopeName, in ParseClangAttributeArgs()
511 ParseObjCBridgeRelatedAttribute(*AttrName, AttrNameLoc, Attrs, EndLoc, in ParseClangAttributeArgs()
515 ParseSwiftNewTypeAttribute(*AttrName, AttrNameLoc, Attrs, EndLoc, ScopeName, in ParseClangAttributeArgs()
519 ParseTypeTagForDatatypeAttribute(*AttrName, AttrNameLoc, Attrs, EndLoc, in ParseClangAttributeArgs()
526 bool Parser::ParseMicrosoftDeclSpecArgs(IdentifierInfo *AttrName, in ParseMicrosoftDeclSpecArgs() argument
531 if (!hasAttribute(AttrSyntax::Declspec, nullptr, AttrName, in ParseMicrosoftDeclSpecArgs()
541 if (AttrName->getName() == "property") { in ParseMicrosoftDeclSpecArgs()
548 AttrName->getNameStart(), tok::r_paren); in ParseMicrosoftDeclSpecArgs()
648 Attrs.addNewPropertyAttr(AttrName, AttrNameLoc, nullptr, SourceLocation(), in ParseMicrosoftDeclSpecArgs()
656 ParseAttributeArgsCommon(AttrName, AttrNameLoc, Attrs, nullptr, nullptr, in ParseMicrosoftDeclSpecArgs()
662 Diag(OpenParenLoc, diag::err_attribute_requires_arguments) << AttrName; in ParseMicrosoftDeclSpecArgs()
703 IdentifierInfo *AttrName; in ParseMicrosoftDeclSpecs() local
713 AttrName = PP.getIdentifierInfo(Str); in ParseMicrosoftDeclSpecs()
716 AttrName = Tok.getIdentifierInfo(); in ParseMicrosoftDeclSpecs()
724 AttrHandled = ParseMicrosoftDeclSpecArgs(AttrName, AttrNameLoc, Attrs); in ParseMicrosoftDeclSpecs()
725 else if (AttrName->getName() == "property") in ParseMicrosoftDeclSpecs()
728 << AttrName->getName(); in ParseMicrosoftDeclSpecs()
731 Attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, in ParseMicrosoftDeclSpecs()
755 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseMicrosoftTypeAttributes() local
757 attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, in ParseMicrosoftTypeAttributes()
806 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseBorlandTypeAttributes() local
808 attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, in ParseBorlandTypeAttributes()
816 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseOpenCLKernelAttributes() local
818 attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, in ParseOpenCLKernelAttributes()
824 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseOpenCLQualifiers() local
826 Attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, in ParseOpenCLQualifiers()
838 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseNullabilityTypeSpecifiers() local
842 << AttrName; in ParseNullabilityTypeSpecifiers()
843 attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, in ParseNullabilityTypeSpecifiers()
1424 IdentifierInfo &AttrName, SourceLocation AttrNameLoc, in ParseSwiftNewTypeAttribute() argument
1442 << &AttrName << Tok.getIdentifierInfo(); in ParseSwiftNewTypeAttribute()
1460 Attrs.addNew(&AttrName, SourceRange(AttrNameLoc, T.getCloseLocation()), in ParseSwiftNewTypeAttribute()
1465 void Parser::ParseTypeTagForDatatypeAttribute(IdentifierInfo &AttrName, in ParseTypeTagForDatatypeAttribute() argument
1518 Attrs.addNewTypeTagForDatatype(&AttrName, AttrNameLoc, ScopeName, ScopeLoc, in ParseTypeTagForDatatypeAttribute()
3501 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseDeclarationSpecifiers() local
3503 DS.getAttributes().addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, in ParseDeclarationSpecifiers()