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

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 14 02:31:28 PDT 2025


================
@@ -1429,7 +1429,7 @@ namespace cwg299 { // cwg299: 2.8 c++11
   // cxx98-11-error@#cwg299-q {{ambiguous conversion of array size expression of type 'T' to an integral or enumeration type}}
   //  cxx98-11-note@#cwg299-int {{conversion to integral type 'int' declared here}}
   //  cxx98-11-note@#cwg299-ushort {{conversion to integral type 'unsigned short' declared here}}
-  // since-cxx14-error-re@#cwg299-q {{{{conversion from 'T' to 'unsigned (long long|long|int)' is ambiguous}}}}
+  // since-cxx14-error@#cwg299-q {{conversion from 'T' to '__size_t' (aka 'unsigned long') is ambiguous}}
----------------
Endilll wrote:

As much as I'm pleased to see regex match going away, you should test this on various platforms to make sure it's really `unsigned long` everywhere.

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


More information about the cfe-commits mailing list