@@ -185,7 +185,7 @@ class PragmaCommentDecl final
185185
186186 PragmaMSCommentKind getCommentKind () const { return CommentKind; }
187187
188- StringRef getArg () const { return getTrailingObjects< char > (); }
188+ StringRef getArg () const { return getTrailingObjects (); }
189189
190190 // Implement isa/cast/dyncast/etc.
191191 static bool classof (const Decl *D) { return classofKind (D->getKind ()); }
@@ -217,8 +217,8 @@ class PragmaDetectMismatchDecl final
217217 static PragmaDetectMismatchDecl *
218218 CreateDeserialized (ASTContext &C, GlobalDeclID ID, unsigned NameValueSize);
219219
220- StringRef getName () const { return getTrailingObjects< char > (); }
221- StringRef getValue () const { return getTrailingObjects< char > () + ValueStart; }
220+ StringRef getName () const { return getTrailingObjects (); }
221+ StringRef getValue () const { return getTrailingObjects () + ValueStart; }
222222
223223 // Implement isa/cast/dyncast/etc.
224224 static bool classof (const Decl *D) { return classofKind (D->getKind ()); }
@@ -1991,7 +1991,7 @@ class FunctionDecl : public DeclaratorDecl,
19911991 // / Get the unqualified lookup results that should be used in this
19921992 // / defaulted function definition.
19931993 ArrayRef<DeclAccessPair> getUnqualifiedLookups () const {
1994- return { getTrailingObjects<DeclAccessPair>(), NumLookups} ;
1994+ return getTrailingObjects<DeclAccessPair>(NumLookups) ;
19951995 }
19961996
19971997 StringLiteral *getDeletedMessage () const {
@@ -4780,13 +4780,9 @@ class OutlinedFunctionDecl final
47804780
47814781 explicit OutlinedFunctionDecl (DeclContext *DC, unsigned NumParams);
47824782
4783- ImplicitParamDecl *const *getParams () const {
4784- return getTrailingObjects<ImplicitParamDecl *>();
4785- }
4783+ ImplicitParamDecl *const *getParams () const { return getTrailingObjects (); }
47864784
4787- ImplicitParamDecl **getParams () {
4788- return getTrailingObjects<ImplicitParamDecl *>();
4789- }
4785+ ImplicitParamDecl **getParams () { return getTrailingObjects (); }
47904786
47914787public:
47924788 friend class ASTDeclReader ;
@@ -4857,13 +4853,9 @@ class CapturedDecl final
48574853
48584854 explicit CapturedDecl (DeclContext *DC, unsigned NumParams);
48594855
4860- ImplicitParamDecl *const *getParams () const {
4861- return getTrailingObjects<ImplicitParamDecl *>();
4862- }
4856+ ImplicitParamDecl *const *getParams () const { return getTrailingObjects (); }
48634857
4864- ImplicitParamDecl **getParams () {
4865- return getTrailingObjects<ImplicitParamDecl *>();
4866- }
4858+ ImplicitParamDecl **getParams () { return getTrailingObjects (); }
48674859
48684860public:
48694861 friend class ASTDeclReader ;
@@ -5187,12 +5179,10 @@ class HLSLRootSignatureDecl final
51875179
51885180 unsigned NumElems;
51895181
5190- llvm::hlsl::rootsig::RootElement *getElems () {
5191- return getTrailingObjects<llvm::hlsl::rootsig::RootElement>();
5192- }
5182+ llvm::hlsl::rootsig::RootElement *getElems () { return getTrailingObjects (); }
51935183
51945184 const llvm::hlsl::rootsig::RootElement *getElems () const {
5195- return getTrailingObjects<llvm::hlsl::rootsig::RootElement> ();
5185+ return getTrailingObjects ();
51965186 }
51975187
51985188 HLSLRootSignatureDecl (DeclContext *DC, SourceLocation Loc, IdentifierInfo *ID,
0 commit comments