[clang] [Clang] Add BuiltinTemplates.td to generate code for builtin templates (PR #123736)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 23 08:03:30 PST 2025


================
@@ -410,11 +410,8 @@ class ASTContext : public RefCountedBase<ASTContext> {
   /// The identifier 'NSCopying'.
   IdentifierInfo *NSCopyingName = nullptr;
 
-  /// The identifier '__make_integer_seq'.
-  mutable IdentifierInfo *MakeIntegerSeqName = nullptr;
-
-  /// The identifier '__type_pack_element'.
-  mutable IdentifierInfo *TypePackElementName = nullptr;
+#define BuiltinTemplate(BTName) mutable IdentifierInfo *Name##BTName = nullptr;
----------------
erichkeane wrote:

Still working through this, but elsewhere we are removing 3 items for this 'define', yet here we are only removing 2.  Should line 417 be removed as well?

https://github.com/llvm/llvm-project/pull/123736


More information about the cfe-commits mailing list