mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[interop][sourcekit] interface generator should show unavailable C++ declarations
This commit is contained in:
@@ -290,6 +290,11 @@ static bool getModuleInterfaceInfo(ASTContext &Ctx,
|
||||
|
||||
PrintOptions Options = PrintOptions::printModuleInterface(
|
||||
Ctx.TypeCheckerOpts.PrintFullConvention);
|
||||
if (Mod->findUnderlyingClangModule()) {
|
||||
// Show unavailable C++ APIs.
|
||||
if (Ctx.LangOpts.EnableCXXInterop)
|
||||
Options.SkipUnavailable = false;
|
||||
}
|
||||
ModuleTraversalOptions TraversalOptions = None; // Don't print submodules.
|
||||
SmallString<128> Text;
|
||||
llvm::raw_svector_ostream OS(Text);
|
||||
|
||||
Reference in New Issue
Block a user