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

Matheus Izvekov via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 14 00:42:31 PDT 2025


================
@@ -5148,6 +5153,14 @@ QualType ASTContext::getDependentBitIntType(bool IsUnsigned,
   return QualType(New, 0);
 }
 
+QualType ASTContext::getPredefinedSugarType(uint32_t KD,
+                                            QualType UnderlyingType) const {
+  auto *New = new (*this, alignof(PredefinedSugarType)) PredefinedSugarType(
----------------
mizvekov wrote:

This should be uniqued like the other types.
If you drop the UnderlyingType, then this is really simple, as there are only three kinds and you can use a small array instead of a folding set node.

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


More information about the cfe-commits mailing list