[clang] Fix crash with -ast-dump=json (PR #137324)

Akira Hatanaka via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 25 17:26:19 PDT 2025


================
@@ -211,6 +211,8 @@ Non-comprehensive list of changes in this release
 - Added `__builtin_elementwise_exp10`.
 - For AMDPGU targets, added `__builtin_v_cvt_off_f32_i4` that maps to the `v_cvt_off_f32_i4` instruction.
 - Added `__builtin_elementwise_minnum` and `__builtin_elementwise_maxnum`.
+- No longer crashing on invalid Objective-C extensions when dumping the AST as
----------------
ahatanak wrote:

I think "Invalid Objective-C categories and extensions" is better since both `@interface SomeClass (SomeExtension)` and `@interface SomeClass ()` cause clang to crash.

https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/CustomizingExistingClasses/CustomizingExistingClasses.html

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


More information about the cfe-commits mailing list