[clang] [lldb] [Clang] Initial support for P2841 (Variable template and concept template parameters) (PR #150823)

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 29 00:57:14 PDT 2025


================
@@ -2187,6 +2189,27 @@ TemplateName TemplateInstantiator::TransformTemplateName(
                                           AllowInjectedClassName);
 }
 
+TemplateArgument TemplateInstantiator::TransformNamedTemplateTemplateArgument(
+    CXXScopeSpec &SS, TemplateName Name, SourceLocation NameLoc) {
+  if (TemplateTemplateParmDecl *TTP =
+          dyn_cast_or_null<TemplateTemplateParmDecl>(
----------------
cor3ntin wrote:

I'd rather not, we are very inconsistent.
See https://discourse.llvm.org/t/psa-swapping-out-or-null-with-if-present/65018/15?u=cor3ntin

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


More information about the cfe-commits mailing list