[clang] [clang-tools-extra] [Clang] Make the SizeType, SignedSizeType and PtrdiffType be named sugar types instead of built-in types (PR #143653)

via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 14 13:04:44 PDT 2025


================
@@ -14536,6 +14589,9 @@ static QualType getCommonSugarTypeNode(ASTContext &Ctx, const Type *X,
                                       DX->isCountInBytes(), DX->isOrNull(),
                                       CDX);
   }
+  case Type::PredefinedSugar: {
+    return QualType();
+  }
----------------
YexuanXiao wrote:

Making it unreachable causes the test PCH/cxx2a-constraints.cpp to fail. I will try to investigate it.

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


More information about the cfe-commits mailing list