Commit Graph

2 Commits

Author SHA1 Message Date
Steven Wu
ca16fba331 [swift-api-extract] BumpPtrAllocate API structs
Fix a bug that pointers to ObjCInterfaces can be invalid when std vector
expended. Now allocate all the interfaces in BumpPtrAllocator so the
pointers to APIs are always valid as long as API class is alive.

rdar://76155450
2021-04-02 11:04:44 -07:00
Steven Wu
02c41656be swift-api-extract to generate JSON API information
Add a new swift-frontend driver option that extract APIs in the swift
module and print in JSON format. This is to allow tooling to understand
and process swift APIs without the need to be a swift compiler or
understand swift module/AST.
2021-02-15 15:04:52 -08:00