[clang] [Clang] Unify interface for accessing template arguments as written for class/variable template specializations (PR #81642)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 1 08:42:07 PDT 2024


================
@@ -2545,10 +2545,12 @@ ASTDeclReader::VisitClassTemplateSpecializationDeclImpl(
   }
 
   // Explicit info.
-  if (TypeSourceInfo *TyInfo = readTypeSourceInfo()) {
-    auto *ExplicitInfo =
-        new (C) ClassTemplateSpecializationDecl::ExplicitSpecializationInfo;
-    ExplicitInfo->TypeAsWritten = TyInfo;
+  if (Record.readBool()) {
+    // FIXME: We don't need to allocate this if ExternLoc and TemplateKeywordLoc
----------------
erichkeane wrote:

Still waiting on this?

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


More information about the cfe-commits mailing list