@@ -1098,7 +1098,7 @@ class ObjCAttr final : public DeclAttribute,
10981098 unsigned length = 2 ;
10991099 if (auto name = getName ())
11001100 length += name->getNumSelectorPieces ();
1101- return { getTrailingObjects<SourceLoc>(), length} ;
1101+ return getTrailingObjects ( length) ;
11021102 }
11031103
11041104 // / Retrieve the trailing location information.
@@ -1107,7 +1107,7 @@ class ObjCAttr final : public DeclAttribute,
11071107 unsigned length = 2 ;
11081108 if (auto name = getName ())
11091109 length += name->getNumSelectorPieces ();
1110- return { getTrailingObjects<SourceLoc>(), length} ;
1110+ return getTrailingObjects ( length) ;
11111111 }
11121112
11131113public:
@@ -1283,14 +1283,14 @@ class DynamicReplacementAttr final
12831283 MutableArrayRef<SourceLoc> getTrailingLocations () {
12841284 assert (Bits.DynamicReplacementAttr .HasTrailingLocationInfo );
12851285 unsigned length = 2 ;
1286- return { getTrailingObjects<SourceLoc>(), length} ;
1286+ return getTrailingObjects ( length) ;
12871287 }
12881288
12891289 // / Retrieve the trailing location information.
12901290 ArrayRef<SourceLoc> getTrailingLocations () const {
12911291 assert (Bits.DynamicReplacementAttr .HasTrailingLocationInfo );
12921292 unsigned length = 2 ; // lParens, rParens
1293- return { getTrailingObjects<SourceLoc>(), length} ;
1293+ return getTrailingObjects ( length) ;
12941294 }
12951295
12961296public:
@@ -1480,8 +1480,7 @@ class SPIAccessControlAttr final : public DeclAttribute,
14801480 // / Note: A single SPI name per attribute is currently supported but this
14811481 // / may change with the syntax change.
14821482 ArrayRef<Identifier> getSPIGroups () const {
1483- return { this ->template getTrailingObjects <Identifier>(),
1484- numSPIGroups };
1483+ return getTrailingObjects (numSPIGroups);
14851484 }
14861485
14871486 static bool classof (const DeclAttribute *DA) {
@@ -2059,11 +2058,11 @@ class StorageRestrictionsAttr final
20592058 unsigned getNumAccessesProperties () const { return NumAccesses; }
20602059
20612060 ArrayRef<Identifier> getInitializesNames () const {
2062- return { getTrailingObjects<Identifier>(), NumInitializes} ;
2061+ return getTrailingObjects ( NumInitializes) ;
20632062 }
20642063
20652064 ArrayRef<Identifier> getAccessesNames () const {
2066- return {getTrailingObjects<Identifier> () + NumInitializes, NumAccesses};
2065+ return {getTrailingObjects () + NumInitializes, NumAccesses};
20672066 }
20682067
20692068 ArrayRef<VarDecl *> getInitializesProperties (AccessorDecl *attachedTo) const ;
@@ -2560,10 +2559,10 @@ class DifferentiableAttr final
25602559 // / The parsed differentiability parameters, i.e. the list of parameters
25612560 // / specified in 'wrt:'.
25622561 ArrayRef<ParsedAutoDiffParameter> getParsedParameters () const {
2563- return { getTrailingObjects<ParsedAutoDiffParameter>(), NumParsedParameters} ;
2562+ return getTrailingObjects ( NumParsedParameters) ;
25642563 }
25652564 MutableArrayRef<ParsedAutoDiffParameter> getParsedParameters () {
2566- return { getTrailingObjects<ParsedAutoDiffParameter>(), NumParsedParameters} ;
2565+ return getTrailingObjects ( NumParsedParameters) ;
25672566 }
25682567 size_t numTrailingObjects (OverloadToken<ParsedAutoDiffParameter>) const {
25692568 return NumParsedParameters;
@@ -2745,10 +2744,10 @@ class DerivativeAttr final
27452744 // / The parsed differentiability parameters, i.e. the list of parameters
27462745 // / specified in 'wrt:'.
27472746 ArrayRef<ParsedAutoDiffParameter> getParsedParameters () const {
2748- return { getTrailingObjects<ParsedAutoDiffParameter>(), NumParsedParameters} ;
2747+ return getTrailingObjects ( NumParsedParameters) ;
27492748 }
27502749 MutableArrayRef<ParsedAutoDiffParameter> getParsedParameters () {
2751- return { getTrailingObjects<ParsedAutoDiffParameter>(), NumParsedParameters} ;
2750+ return getTrailingObjects ( NumParsedParameters) ;
27522751 }
27532752 size_t numTrailingObjects (OverloadToken<ParsedAutoDiffParameter>) const {
27542753 return NumParsedParameters;
@@ -2836,10 +2835,10 @@ class TransposeAttr final
28362835 // / The parsed linearity parameters, i.e. the list of parameters specified in
28372836 // / 'wrt:'.
28382837 ArrayRef<ParsedAutoDiffParameter> getParsedParameters () const {
2839- return { getTrailingObjects<ParsedAutoDiffParameter>(), NumParsedParameters} ;
2838+ return getTrailingObjects ( NumParsedParameters) ;
28402839 }
28412840 MutableArrayRef<ParsedAutoDiffParameter> getParsedParameters () {
2842- return { getTrailingObjects<ParsedAutoDiffParameter>(), NumParsedParameters} ;
2841+ return getTrailingObjects ( NumParsedParameters) ;
28432842 }
28442843 size_t numTrailingObjects (OverloadToken<ParsedAutoDiffParameter>) const {
28452844 return NumParsedParameters;
@@ -3490,8 +3489,8 @@ class AllowFeatureSuppressionAttr final
34903489 bool getInverted () const { return Bits.AllowFeatureSuppressionAttr .Inverted ; }
34913490
34923491 ArrayRef<Identifier> getSuppressedFeatures () const {
3493- return { getTrailingObjects<Identifier>(),
3494- static_cast <size_t >(Bits.AllowFeatureSuppressionAttr .NumFeatures )} ;
3492+ return getTrailingObjects (
3493+ static_cast <size_t >(Bits.AllowFeatureSuppressionAttr .NumFeatures )) ;
34953494 }
34963495
34973496 static bool classof (const DeclAttribute *DA) {
0 commit comments