[clang] [clang-tools-extra] [libcxx] [lldb] Reland [Clang] Make the SizeType, SignedSizeType and PtrdiffType be named sugar types (PR #149613)

Younan Zhang via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 9 03:48:55 PST 2026


================
@@ -2258,6 +2258,30 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
     unsigned NumExpansions;
   };
 
+  enum class PredefinedSugarKind {
+    /// The "size_t" type.
+    SizeT,
+
+    /// The signed integer type corresponding to "size_t".
+    SignedSizeT,
+
+    /// The "ptrdiff_t" type.
+    PtrdiffT,
+
+    // Indicates how many items the enum has.
+    Last = PtrdiffT
+  };
+
+  class PresefinedSugarTypeBitfields {
----------------
zyn0217 wrote:

@YexuanXiao There's a typo here

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


More information about the cfe-commits mailing list