[llvm-branch-commits] [clang] [clang] implement printing of canonical template arguments of expression kind (PR #135133)
Erich Keane via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Apr 10 06:34:36 PDT 2025
================
@@ -1305,9 +1305,13 @@ void StmtPrinter::VisitDeclRefExpr(DeclRefExpr *Node) {
Qualifier->print(OS, Policy);
if (Node->hasTemplateKeyword())
OS << "template ";
+
+ bool ForceAnonymous =
+ Policy.PrintAsCanonical && VD->getKind() == Decl::NonTypeTemplateParm;
----------------
erichkeane wrote:
Can you explain what is going on here? This is a little subtle.
https://github.com/llvm/llvm-project/pull/135133
More information about the llvm-branch-commits
mailing list