Conversation
Clang 22 removes `ElaboratedType` and now represents `size_t`/`ssize_t`/`ptrdiff_t` using `PredefinedSugarType` (see llvm PR #143653)
| auto t = D->getTypeForDecl(); | ||
|
|
There was a problem hiding this comment.
These are unused and the getTypeForDecl method no longer exists in Clang 22.
| .expect("Predefined sugar type kind not found"); | ||
|
|
||
| // See `clang::PredefinedSugarKind`. | ||
| let predef_sugar_ty = match kind { |
There was a problem hiding this comment.
Does this affect the portable type code?
There was a problem hiding this comment.
PredefinedSugarKind seems to be similar to what we're doing with the portable types, but just for size_t, ssize_t, and ptrdiff_t, so I'm wondering if we need to handle this specially.
| VisitQualType(t); | ||
| } | ||
|
|
||
| #if CLANG_VERSION_MAJOR < 22 |
There was a problem hiding this comment.
Do we indent preprocessor directives? In most projects, they start at column 1.
|
I think there's an additional problem that comes up when actually testing against Clang 22: we hit an infinite loop with increasing memory consumption in |
No description provided.