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

Matheus Izvekov via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 21 13:55:07 PDT 2026


================
@@ -167,8 +167,7 @@ class TemplateArgument {
     unsigned Kind : 31;
     LLVM_PREFERRED_TYPE(bool)
     unsigned IsDefaulted : 1;
-    LLVM_PREFERRED_TYPE(bool)
-    unsigned IsCanonicalExpr : 1;
+    unsigned ExprCanonKind : 2;
----------------
mizvekov wrote:

I have just added the PREFERRED_TYPE annotations in any case, they at least don't seem to hurt anything, and improve readability a bit I guess.

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


More information about the cfe-commits mailing list