Home | History | Annotate | Download | only in Parse

Lines Matching refs:attrs

48                                  ParsedAttributes *Attrs) {
55 if (Attrs)
56 DS.addAttributes(Attrs->getList());
124 void Parser::ParseGNUAttributes(ParsedAttributes &attrs,
157 attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0,
164 ParseGNUAttributeArgs(AttrName, AttrNameLoc, attrs, endLoc, nullptr,
244 ParsedAttributes &Attrs,
263 Attrs.addNewTypeAttr(&AttrName,
267 Attrs.addNew(&AttrName, SourceRange(AttrNameLoc, Parens.getCloseLocation()),
273 ParsedAttributes &Attrs, SourceLocation *EndLoc, IdentifierInfo *ScopeName,
323 Attrs.addNew(AttrName, SourceRange(AttrLoc, RParen), ScopeName, ScopeLoc,
337 ParsedAttributes &Attrs,
350 ParseAvailabilityAttribute(*AttrName, AttrNameLoc, Attrs, EndLoc, ScopeName,
354 ParseObjCBridgeRelatedAttribute(*AttrName, AttrNameLoc, Attrs, EndLoc,
358 ParseTypeTagForDatatypeAttribute(*AttrName, AttrNameLoc, Attrs, EndLoc,
362 ParseAttributeWithTypeArg(*AttrName, AttrNameLoc, Attrs, EndLoc, ScopeName,
382 ParseAttributeArgsCommon(AttrName, AttrNameLoc, Attrs, EndLoc, ScopeName,
388 ParsedAttributes &Attrs) {
508 Attrs.addNewPropertyAttr(AttrName, AttrNameLoc, nullptr, SourceLocation(),
516 ParseAttributeArgsCommon(AttrName, AttrNameLoc, Attrs, nullptr, nullptr,
521 const AttributeList *Attr = Attrs.getList();
535 void Parser::ParseMicrosoftDeclSpecs(ParsedAttributes &Attrs,
585 AttrHandled = ParseMicrosoftDeclSpecArgs(AttrName, AttrNameLoc, Attrs);
592 Attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0,
601 void Parser::ParseMicrosoftTypeAttributes(ParsedAttributes &attrs) {
617 attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0,
663 void Parser::ParseBorlandTypeAttributes(ParsedAttributes &attrs) {
668 attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0,
673 void Parser::ParseOpenCLKernelAttributes(ParsedAttributes &attrs) {
678 attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0,
683 void Parser::ParseOpenCLQualifiers(ParsedAttributes &Attrs) {
686 Attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0,
690 void Parser::ParseNullabilityTypeSpecifiers(ParsedAttributes &attrs) {
702 attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0,
860 ParsedAttributes &attrs,
1049 attrs.addNew(&Availability,
1073 ParsedAttributes &attrs,
1134 attrs.addNew(&ObjCBridgeRelated,
1225 ParsedAttributes Attrs(AttrFactory);
1250 ParseGNUAttributeArgs(&LA.AttrName, LA.AttrNameLoc, Attrs, &endLoc,
1264 ParseGNUAttributeArgs(&LA.AttrName, LA.AttrNameLoc, Attrs, &endLoc,
1272 const AttributeList *AL = Attrs.getList();
1279 Actions.ActOnFinishDelayedAttribute(getCurScope(), LA.Decls[i], Attrs);
1292 ParsedAttributes &Attrs,
1343 Attrs.addNewTypeTagForDatatype(&AttrName, AttrNameLoc, ScopeName, ScopeLoc,
1390 void Parser::DiagnoseMisplacedCXX11Attribute(ParsedAttributesWithRange &Attrs,
1397 ParseCXX11Attributes(Attrs);
1398 CharSourceRange AttrRange(SourceRange(Loc, Attrs.Range.getEnd()), true);
1405 void Parser::DiagnoseProhibitedAttributes(ParsedAttributesWithRange &attrs) {
1406 Diag(attrs.Range.getBegin(), diag::err_attributes_not_allowed)
1407 << attrs.Range;
1410 void Parser::ProhibitCXX11Attributes(ParsedAttributesWithRange &attrs) {
1411 AttributeList *AttrList = attrs.getList();
1424 void Parser::handleDeclspecAlignBeforeClassKey(ParsedAttributesWithRange &Attrs,
1442 Attrs.add(AL);
1480 ParsedAttributesWithRange &attrs) {
1491 ProhibitAttributes(attrs);
1497 ProhibitAttributes(attrs);
1501 return ParseSimpleDeclaration(Context, DeclEnd, attrs,
1504 ProhibitAttributes(attrs);
1508 DeclEnd, attrs, &OwnedType);
1512 ProhibitAttributes(attrs);
1516 return ParseSimpleDeclaration(Context, DeclEnd, attrs, true);
1544 ParsedAttributesWithRange &Attrs,
1561 ProhibitAttributes(Attrs);
1575 DS.takeAttributesFrom(Attrs);
2250 ParsedAttributesWithRange &Attrs) {
2354 /*EnteringContext*/ false, DSC_normal, Attrs);
2503 /// attribute to Attrs.
2510 void Parser::ParseAlignmentSpecifier(ParsedAttributes &Attrs,
2535 Attrs.addNew(KWName, KWLoc, nullptr, KWLoc, ArgExprs.data(), 1,
2688 ParsedAttributesWithRange attrs(AttrFactory);
2715 ProhibitAttributes(attrs);
2720 ProhibitCXX11Attributes(attrs);
2722 DS.takeAttributesFrom(attrs);
2735 ProhibitAttributes(attrs);
2739 attrs.clear();
2740 attrs.Range = SourceRange();
2742 ParseCXX11Attributes(attrs);
2905 ParsedAttributesWithRange Attrs(AttrFactory);
2906 if (ParseImplicitInt(DS, &SS, TemplateInfo, AS, DSContext, Attrs)) {
2907 if (!Attrs.empty()) {
2909 attrs.takeAllFrom(Attrs);
3018 ParsedAttributesWithRange Attrs(AttrFactory);
3019 if (ParseImplicitInt(DS, nullptr, TemplateInfo, AS, DSContext, Attrs)) {
3020 if (!Attrs.empty()) {
3022 attrs.takeAllFrom(Attrs);
3420 attrs.takeAllFrom(Attributes);
3709 ParsedAttributesWithRange Attrs(AttrFactory);
3710 (void)ParseOpenMPDeclarativeDirectiveWithExtDecl(AS, Attrs);
3767 ParsedAttributes attrs(AttrFactory);
3769 MaybeParseGNUAttributes(attrs);
3774 attrs.getList());
3821 ParsedAttributesWithRange attrs(AttrFactory);
3822 MaybeParseGNUAttributes(attrs);
3823 MaybeParseCXX11Attributes(attrs);
3824 MaybeParseMicrosoftDeclSpecs(attrs);
3838 ProhibitAttributes(attrs);
3841 MaybeParseGNUAttributes(attrs);
3842 MaybeParseCXX11Attributes(attrs);
3843 MaybeParseMicrosoftDeclSpecs(attrs);
4061 ProhibitAttributes(attrs);
4071 handleDeclspecAlignBeforeClassKey(attrs, DS, TUK);
4085 StartLoc, SS, Name, NameLoc, attrs.getList(),
4195 ParsedAttributesWithRange attrs(AttrFactory);
4196 MaybeParseGNUAttributes(attrs);
4197 ProhibitAttributes(attrs); // GNU-style attributes are prohibited.
4202 ParseCXX11Attributes(attrs);
4219 attrs.getList(), EqualLoc,
4269 ParsedAttributes attrs(AttrFactory);
4270 MaybeParseGNUAttributes(attrs);
4275 attrs.getList());
4705 ParsedAttributes Attrs(AttrFactory);
4706 MaybeParseMicrosoftAttributes(Attrs);
4792 ParsedAttributesWithRange attrs(AttrFactory);
4793 ParseCXX11Attributes(attrs);
4794 DS.takeAttributesFrom(attrs);
5427 ParsedAttributes attrs(AttrFactory);
5430 ParseFunctionDeclarator(D, attrs, T, IsAmbiguous);
5469 ParsedAttributes attrs(AttrFactory);
5472 ParseGNUAttributes(attrs);
5480 ParseMicrosoftTypeAttributes(attrs);
5484 ParseBorlandTypeAttributes(attrs);
5523 attrs, T.getCloseLocation());
5546 ParseFunctionDeclarator(D, attrs, T, false, RequiresArg);
6060 ParsedAttributes attrs(AttrFactory);
6061 MaybeParseCXX11Attributes(attrs);
6067 attrs, T.getCloseLocation());
6076 ParsedAttributes attrs(AttrFactory);
6077 MaybeParseCXX11Attributes(attrs);
6084 attrs, T.getCloseLocation());
6154 ParsedAttributes attrs(AttrFactory);
6155 MaybeParseCXX11Attributes(attrs);
6163 attrs, T.getCloseLocation());
6215 ParsedAttributes attrs(AttrFactory);
6217 D.AddTypeInfo(DeclaratorChunk::getParen(SuggestParenLoc, EndLoc), attrs,
6224 ParsedAttributes attrs(AttrFactory);
6225 attrs.set(Chunk.Common.AttrList);
6226 D.AddTypeInfo(Chunk, attrs, SourceLocation());