clang has functionality for loading, which is in part how Swift gets their nice import Foundation.NSString.
We should use that in header-translator too, especially for feature-gating things (instead of feature-gating based on class name).
It can be enabled using something like:
-fmodules -fapinotes-modules -fmodules-cache-path=./target
Though after doing that, I'm having trouble with getting libclang to give me a cursor to each module, so that I can check what's in it!
Other possibly interesting options: -Xclang -fmodule-format=raw, -fmodule-feature=objc,
clanghas functionality for loading, which is in part how Swift gets their niceimport Foundation.NSString.We should use that in
header-translatortoo, especially for feature-gating things (instead of feature-gating based on class name).It can be enabled using something like:
Though after doing that, I'm having trouble with getting
libclangto give me a cursor to each module, so that I can check what's in it!Other possibly interesting options:
-Xclang -fmodule-format=raw,-fmodule-feature=objc,