[libcxx-commits] [clang] [clang-tools-extra] [libcxx] [Clang] Make the SizeType, SignedSizeType and PtrdiffType be named sugar types instead of built-in types (PR #143653)
Matheus Izvekov via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jul 4 09:09:18 PDT 2025
================
@@ -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.
+ Max
----------------
mizvekov wrote:
```suggestion
NumElements
```
As Max can be confused with "maximum value".
https://github.com/llvm/llvm-project/pull/143653
More information about the libcxx-commits
mailing list