[Lldb-commits] [clang] [clang-tools-extra] [libcxx] [lldb] [Clang] Make the SizeType, SignedSizeType and PtrdiffType be named sugar types instead of built-in types (PR #143653)
Erich Keane via lldb-commits
lldb-commits at lists.llvm.org
Mon Jul 7 07:17:59 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.
+ NumElements
----------------
erichkeane wrote:
Shouldn't this be `NumElements = PtrdiffT`? Typically we do something like `Last = ` kinda thing in our enums, so this is a little odd/awkward.
https://github.com/llvm/llvm-project/pull/143653
More information about the lldb-commits
mailing list