mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The `-include-submodules` flag causes the synthesized interface to include implicit Clang submodules of the module being printed. Since these are automatically made visible when importing the corresponding top-level module, it's often useful to have them present in the same synthesized Swift interface instead of having to make separate invocations to get each submodule separately. The `-print-fully-qualified-types` causes type names to be printed with full module qualification. This is useful when using the synthesized interface for some other kind of analysis, because it ensures that all type references explicitly indicate which module they came from, instead of having to guess scoping and import resolution rules to figure out which module a reference comes from.
21 lines
284 B
Plaintext
21 lines
284 B
Plaintext
module m1 {
|
|
header "m1.h"
|
|
}
|
|
|
|
module mcxx {
|
|
requires cplusplus
|
|
header "mcxx.h"
|
|
}
|
|
|
|
module TopLevelModule {
|
|
header "TopLevelModule.h"
|
|
|
|
module ImplicitSubmodule {
|
|
header "ImplicitSubmodule.h"
|
|
}
|
|
|
|
explicit module ExplicitSubmodule {
|
|
header "ExplicitSubmodule.h"
|
|
}
|
|
}
|