[clang] [Clang][NFC] Remove TemplateArgumentList::OnStack (PR #79760)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 29 12:43:06 PST 2024


================
@@ -301,7 +279,9 @@ class TemplateArgumentList final
   unsigned size() const { return NumArguments; }
 
   /// Retrieve a pointer to the template argument list.
-  const TemplateArgument *data() const { return Arguments; }
+  const TemplateArgument *data() const {
+    return getTrailingObjects<TemplateArgument>();
+  }
----------------
cor3ntin wrote:

I wonder if we could get rid of that entirely in the public interface

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


More information about the cfe-commits mailing list