[clang] [Clang][NFC] Introduce a node to model concept and variable template template parameters (PR #216729)
Corentin Jabot via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 17 10:30:45 PDT 2026
================
@@ -3488,6 +3460,98 @@ class UnresolvedLookupExpr final
}
};
+/// A template-id naming a variable template or a concept through a template
+/// template parameter.
+class DependentTemplateIdExpr final
+ : public Expr,
+ private llvm::TrailingObjects<DependentTemplateIdExpr,
+ TemplateArgumentLoc> {
+ friend class ASTStmtReader;
+ friend class ASTStmtWriter;
+ friend TrailingObjects;
+
+ NestedNameSpecifierLoc QualifierLoc;
+ DeclarationNameInfo NameInfo;
----------------
cor3ntin wrote:
DeclRefExpr get the `DeclarationName` from the Decl, stashes the location in the Expr Bitfields and can use all of these things to reconstitute a `DeclarationNameInfo` . We would have to store a ``DeclarationName` to do that so I don't think this would save us anything
https://github.com/llvm/llvm-project/pull/216729
More information about the cfe-commits
mailing list