Commit Graph

4 Commits

Author SHA1 Message Date
Allan Shortlidge
ea1ba1387d NFC: Add -parse-as-library and dedicated module caches to APIJSON tests. 2023-10-04 21:46:23 -07:00
Juergen Ributzka
a9e02e91cb [TBDGen] Add support for Objective-C Categories.
Emit Objective-C Categories for extensions that have the @objc attribute
directly (or indirectly via one of its methods, subscripts, etc) attached.

Also associate and emit all methods for that category into the API JSON file.

This fixes rdar://94734748.
2022-06-28 09:09:49 -07:00
Alexis Laferrière
a18c2a18f9 [Test] Add -module-cache-path flag to the APIJSON tests
The APIJSON tests used the default module cache and generated different
modules under the same name. This lead some tests to load a different
module than intended. This was made more easily detectable with the lock
on the swiftmodules instead of the swiftinterfaces.
2021-03-02 12:38:15 -08: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