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

Shafik Yaghmour via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 21 22:10:50 PST 2024


================
@@ -1760,6 +1760,21 @@ class BuiltinTemplateDecl : public TemplateDecl {
   BuiltinTemplateKind getBuiltinTemplateKind() const { return BTK; }
 };
 
+/// Provides information about an explicit instantiation of a variable or class
+/// template.
+struct ExplicitInstantiationInfo {
+  /// The template arguments as written..
+  const ASTTemplateArgumentListInfo *TemplateArgsAsWritten = nullptr;
+
+  /// The location of the extern keyword.
+  SourceLocation ExternLoc;
----------------
shafik wrote:

nitpick, If we are going to use `Keyword` in `TemplateKeywordLoc` then we should be consistent.

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


More information about the cfe-commits mailing list