[clang] [clang-tools-extra] [lldb] [clang] implement CWG1980 and CWG2064: instantiation-dependency improvements (PR #190495)

Oliver Hunt via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 21 00:48:45 PDT 2026


================
@@ -572,7 +568,7 @@ void TemplateArgument::print(const PrintingPolicy &Policy, raw_ostream &Out,
 
   case Expression: {
     PrintingPolicy ExprPolicy = Policy;
-    ExprPolicy.PrintAsCanonical = isCanonicalExpr();
+    ExprPolicy.PrintAsCanonical = bool(getExprCanonKind());
----------------
ojhunt wrote:

I think this should be an explicit comparison not a direct bool cast

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


More information about the cfe-commits mailing list