[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:38 PDT 2025
================
@@ -1724,6 +1724,8 @@ void JSONNodeDumper::VisitTemplateExpansionTemplateArgument(
void JSONNodeDumper::VisitExpressionTemplateArgument(
const TemplateArgument &TA) {
JOS.attribute("isExpr", true);
+ if (TA.isCanonicalExpr())
+ JOS.attribute("isCanon", true);
----------------
erichkeane wrote:
Any reason to not just do `isCanonical` instead? `Canon` is already a word and sounds nonsensical.
https://github.com/llvm/llvm-project/pull/135133
More information about the llvm-branch-commits
mailing list