@@ -1940,7 +1940,7 @@ Parser::DeclGroupPtrTy Parser::ParseSimpleDeclaration(
19401940
19411941 // Parse the common declaration-specifiers piece.
19421942 ParsingDeclSpec DS (*this );
1943- DS.takeAttributesAppendFrom (DeclSpecAttrs);
1943+ DS.takeAttributesAppendingFrom (DeclSpecAttrs);
19441944
19451945 ParsedTemplateInfo TemplateInfo;
19461946 DeclSpecContext DSContext = getDeclSpecContextFromDeclaratorContext (Context);
@@ -2136,7 +2136,7 @@ Parser::DeclGroupPtrTy Parser::ParseDeclGroup(ParsingDeclSpec &DS,
21362136 // list. This ensures that we will not attempt to interpret them as statement
21372137 // attributes higher up the callchain.
21382138 ParsedAttributes LocalAttrs (AttrFactory);
2139- LocalAttrs.takeAllPrependFrom (Attrs);
2139+ LocalAttrs.takeAllPrependingFrom (Attrs);
21402140 ParsingDeclarator D (*this , DS, LocalAttrs, Context);
21412141 if (TemplateInfo.TemplateParams )
21422142 D.setTemplateParameterLists (*TemplateInfo.TemplateParams );
@@ -3463,7 +3463,7 @@ void Parser::ParseDeclarationSpecifiers(
34633463 PA.setInvalid ();
34643464 }
34653465
3466- DS.takeAttributesAppendFrom (attrs);
3466+ DS.takeAttributesAppendingFrom (attrs);
34673467 }
34683468
34693469 // If this is not a declaration specifier token, we're done reading decl
@@ -3690,7 +3690,7 @@ void Parser::ParseDeclarationSpecifiers(
36903690 if (ParseImplicitInt (DS, &SS, TemplateInfo, AS, DSContext, Attrs)) {
36913691 if (!Attrs.empty ()) {
36923692 AttrsLastTime = true ;
3693- attrs.takeAllAppendFrom (Attrs);
3693+ attrs.takeAllAppendingFrom (Attrs);
36943694 }
36953695 continue ;
36963696 }
@@ -3855,7 +3855,7 @@ void Parser::ParseDeclarationSpecifiers(
38553855 if (ParseImplicitInt (DS, nullptr , TemplateInfo, AS, DSContext, Attrs)) {
38563856 if (!Attrs.empty ()) {
38573857 AttrsLastTime = true ;
3858- attrs.takeAllAppendFrom (Attrs);
3858+ attrs.takeAllAppendingFrom (Attrs);
38593859 }
38603860 continue ;
38613861 }
@@ -4464,7 +4464,7 @@ void Parser::ParseDeclarationSpecifiers(
44644464 // take them over and handle them here.
44654465 if (!Attributes.empty ()) {
44664466 AttrsLastTime = true ;
4467- attrs.takeAllAppendFrom (Attributes);
4467+ attrs.takeAllAppendingFrom (Attributes);
44684468 }
44694469 continue ;
44704470 }
@@ -4831,7 +4831,7 @@ void Parser::ParseLexedCAttribute(LateParsedAttribute &LA, bool EnterScope,
48314831 ConsumeAnyToken ();
48324832
48334833 if (OutAttrs) {
4834- OutAttrs->takeAllAppendFrom (Attrs);
4834+ OutAttrs->takeAllAppendingFrom (Attrs);
48354835 }
48364836}
48374837
@@ -6123,7 +6123,7 @@ void Parser::ParseTypeQualifierListOpt(
61236123 isAllowedCXX11AttributeSpecifier ()) {
61246124 ParsedAttributes Attrs (AttrFactory);
61256125 ParseCXX11Attributes (Attrs);
6126- DS.takeAttributesAppendFrom (Attrs);
6126+ DS.takeAttributesAppendingFrom (Attrs);
61276127 }
61286128
61296129 SourceLocation EndLoc;
@@ -7484,7 +7484,7 @@ void Parser::ParseParameterDeclarationClause(
74847484 // Take them so that we only apply the attributes to the first parameter.
74857485 // We have already started parsing the decl-specifier sequence, so don't
74867486 // parse any parameter-declaration pieces that precede it.
7487- ArgDeclSpecAttrs.takeAllPrependFrom (FirstArgAttrs);
7487+ ArgDeclSpecAttrs.takeAllPrependingFrom (FirstArgAttrs);
74887488 } else {
74897489 // Parse any C++11 attributes.
74907490 MaybeParseCXX11Attributes (ArgDeclAttrs);
@@ -7506,7 +7506,7 @@ void Parser::ParseParameterDeclarationClause(
75067506 DeclSpecContext::DSC_normal,
75077507 /* LateAttrs=*/ nullptr , AllowImplicitTypename);
75087508
7509- DS.takeAttributesAppendFrom (ArgDeclSpecAttrs);
7509+ DS.takeAttributesAppendingFrom (ArgDeclSpecAttrs);
75107510
75117511 // Parse the declarator. This is "PrototypeContext" or
75127512 // "LambdaExprParameterContext", because we must accept either
0 commit comments