@@ -1098,7 +1098,7 @@ class ObjCAttr final : public DeclAttribute,
1098
1098
unsigned length = 2 ;
1099
1099
if (auto name = getName ())
1100
1100
length += name->getNumSelectorPieces ();
1101
- return { getTrailingObjects<SourceLoc>(), length} ;
1101
+ return getTrailingObjects ( length) ;
1102
1102
}
1103
1103
1104
1104
// / Retrieve the trailing location information.
@@ -1107,7 +1107,7 @@ class ObjCAttr final : public DeclAttribute,
1107
1107
unsigned length = 2 ;
1108
1108
if (auto name = getName ())
1109
1109
length += name->getNumSelectorPieces ();
1110
- return { getTrailingObjects<SourceLoc>(), length} ;
1110
+ return getTrailingObjects ( length) ;
1111
1111
}
1112
1112
1113
1113
public:
@@ -1283,14 +1283,14 @@ class DynamicReplacementAttr final
1283
1283
MutableArrayRef<SourceLoc> getTrailingLocations () {
1284
1284
assert (Bits.DynamicReplacementAttr .HasTrailingLocationInfo );
1285
1285
unsigned length = 2 ;
1286
- return { getTrailingObjects<SourceLoc>(), length} ;
1286
+ return getTrailingObjects ( length) ;
1287
1287
}
1288
1288
1289
1289
// / Retrieve the trailing location information.
1290
1290
ArrayRef<SourceLoc> getTrailingLocations () const {
1291
1291
assert (Bits.DynamicReplacementAttr .HasTrailingLocationInfo );
1292
1292
unsigned length = 2 ; // lParens, rParens
1293
- return { getTrailingObjects<SourceLoc>(), length} ;
1293
+ return getTrailingObjects ( length) ;
1294
1294
}
1295
1295
1296
1296
public:
@@ -1480,8 +1480,7 @@ class SPIAccessControlAttr final : public DeclAttribute,
1480
1480
// / Note: A single SPI name per attribute is currently supported but this
1481
1481
// / may change with the syntax change.
1482
1482
ArrayRef<Identifier> getSPIGroups () const {
1483
- return { this ->template getTrailingObjects <Identifier>(),
1484
- numSPIGroups };
1483
+ return getTrailingObjects (numSPIGroups);
1485
1484
}
1486
1485
1487
1486
static bool classof (const DeclAttribute *DA) {
@@ -2059,11 +2058,11 @@ class StorageRestrictionsAttr final
2059
2058
unsigned getNumAccessesProperties () const { return NumAccesses; }
2060
2059
2061
2060
ArrayRef<Identifier> getInitializesNames () const {
2062
- return { getTrailingObjects<Identifier>(), NumInitializes} ;
2061
+ return getTrailingObjects ( NumInitializes) ;
2063
2062
}
2064
2063
2065
2064
ArrayRef<Identifier> getAccessesNames () const {
2066
- return {getTrailingObjects<Identifier> () + NumInitializes, NumAccesses};
2065
+ return {getTrailingObjects () + NumInitializes, NumAccesses};
2067
2066
}
2068
2067
2069
2068
ArrayRef<VarDecl *> getInitializesProperties (AccessorDecl *attachedTo) const ;
@@ -2560,10 +2559,10 @@ class DifferentiableAttr final
2560
2559
// / The parsed differentiability parameters, i.e. the list of parameters
2561
2560
// / specified in 'wrt:'.
2562
2561
ArrayRef<ParsedAutoDiffParameter> getParsedParameters () const {
2563
- return { getTrailingObjects<ParsedAutoDiffParameter>(), NumParsedParameters} ;
2562
+ return getTrailingObjects ( NumParsedParameters) ;
2564
2563
}
2565
2564
MutableArrayRef<ParsedAutoDiffParameter> getParsedParameters () {
2566
- return { getTrailingObjects<ParsedAutoDiffParameter>(), NumParsedParameters} ;
2565
+ return getTrailingObjects ( NumParsedParameters) ;
2567
2566
}
2568
2567
size_t numTrailingObjects (OverloadToken<ParsedAutoDiffParameter>) const {
2569
2568
return NumParsedParameters;
@@ -2745,10 +2744,10 @@ class DerivativeAttr final
2745
2744
// / The parsed differentiability parameters, i.e. the list of parameters
2746
2745
// / specified in 'wrt:'.
2747
2746
ArrayRef<ParsedAutoDiffParameter> getParsedParameters () const {
2748
- return { getTrailingObjects<ParsedAutoDiffParameter>(), NumParsedParameters} ;
2747
+ return getTrailingObjects ( NumParsedParameters) ;
2749
2748
}
2750
2749
MutableArrayRef<ParsedAutoDiffParameter> getParsedParameters () {
2751
- return { getTrailingObjects<ParsedAutoDiffParameter>(), NumParsedParameters} ;
2750
+ return getTrailingObjects ( NumParsedParameters) ;
2752
2751
}
2753
2752
size_t numTrailingObjects (OverloadToken<ParsedAutoDiffParameter>) const {
2754
2753
return NumParsedParameters;
@@ -2836,10 +2835,10 @@ class TransposeAttr final
2836
2835
// / The parsed linearity parameters, i.e. the list of parameters specified in
2837
2836
// / 'wrt:'.
2838
2837
ArrayRef<ParsedAutoDiffParameter> getParsedParameters () const {
2839
- return { getTrailingObjects<ParsedAutoDiffParameter>(), NumParsedParameters} ;
2838
+ return getTrailingObjects ( NumParsedParameters) ;
2840
2839
}
2841
2840
MutableArrayRef<ParsedAutoDiffParameter> getParsedParameters () {
2842
- return { getTrailingObjects<ParsedAutoDiffParameter>(), NumParsedParameters} ;
2841
+ return getTrailingObjects ( NumParsedParameters) ;
2843
2842
}
2844
2843
size_t numTrailingObjects (OverloadToken<ParsedAutoDiffParameter>) const {
2845
2844
return NumParsedParameters;
@@ -3490,8 +3489,8 @@ class AllowFeatureSuppressionAttr final
3490
3489
bool getInverted () const { return Bits.AllowFeatureSuppressionAttr .Inverted ; }
3491
3490
3492
3491
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 )) ;
3495
3494
}
3496
3495
3497
3496
static bool classof (const DeclAttribute *DA) {
0 commit comments