[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)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Jun 28 19:31:47 PDT 2025
================
@@ -2767,6 +2767,10 @@ class DependentBitIntTypeLoc final
: public InheritingConcreteTypeLoc<TypeSpecTypeLoc, DependentBitIntTypeLoc,
DependentBitIntType> {};
+class PredefinedSugarTypeLoc final
+ : public InheritingConcreteTypeLoc<TypeSpecTypeLoc, PredefinedSugarTypeLoc,
+ PredefinedSugarType> {};
----------------
YexuanXiao wrote:
https://github.com/llvm/llvm-project/blob/25d52fbf96ec927914b3a5c9db0b61fe2804a3dd/clang/include/clang/AST/RecursiveASTVisitor.h#L722-L728 uses it, and TypeLocNodes.def is actually TypeNodes.td. I don't think there's currently a simple way to avoid it.
https://github.com/llvm/llvm-project/pull/143653
More information about the libcxx-commits
mailing list