Skip to content

Commit 7dbae40

Browse files
authored
[NFC][Clang] Adopt simplified getTrailingObjects in ParsedTemplate (#143255)
1 parent 6615ec6 commit 7dbae40

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

clang/include/clang/Sema/ParsedAttr.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,6 @@ class ParsedAttr final
130130
size_t numTrailingObjects(OverloadToken<ParsedType>) const {
131131
return HasParsedType;
132132
}
133-
size_t numTrailingObjects(OverloadToken<detail::PropertyData>) const {
134-
return IsProperty;
135-
}
136133

137134
private:
138135
IdentifierInfo *MacroII = nullptr;

clang/include/clang/Sema/ParsedTemplate.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,7 @@ namespace clang {
190190
bool ArgsInvalid;
191191

192192
/// Retrieves a pointer to the template arguments
193-
ParsedTemplateArgument *getTemplateArgs() {
194-
return getTrailingObjects<ParsedTemplateArgument>();
195-
}
193+
ParsedTemplateArgument *getTemplateArgs() { return getTrailingObjects(); }
196194

197195
/// Creates a new TemplateIdAnnotation with NumArgs arguments and
198196
/// appends it to List.

0 commit comments

Comments
 (0)