mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[NFC] Pass full convention printing boolean for types etc.
When -experimental-print-full-convention is set, we should be printing the full convention in diagnostics, doc comments etc.
This commit is contained in:
@@ -286,7 +286,8 @@ static bool getModuleInterfaceInfo(ASTContext &Ctx,
|
||||
return true;
|
||||
}
|
||||
|
||||
PrintOptions Options = PrintOptions::printModuleInterface();
|
||||
PrintOptions Options = PrintOptions::printModuleInterface(
|
||||
Ctx.TypeCheckerOpts.PrintFullConvention);
|
||||
ModuleTraversalOptions TraversalOptions = None; // Don't print submodules.
|
||||
SmallString<128> Text;
|
||||
llvm::raw_svector_ostream OS(Text);
|
||||
@@ -313,7 +314,8 @@ static bool getHeaderInterfaceInfo(ASTContext &Ctx,
|
||||
return true;
|
||||
}
|
||||
|
||||
PrintOptions Options = PrintOptions::printModuleInterface();
|
||||
PrintOptions Options = PrintOptions::printModuleInterface(
|
||||
Ctx.TypeCheckerOpts.PrintFullConvention);
|
||||
|
||||
SmallString<128> Text;
|
||||
llvm::raw_svector_ostream OS(Text);
|
||||
@@ -336,7 +338,8 @@ SwiftInterfaceGenContext::createForSwiftSource(StringRef DocumentName,
|
||||
IFaceGenCtx->Impl.ModuleOrHeaderName = SourceFileName.str();
|
||||
IFaceGenCtx->Impl.AstUnit = AstUnit;
|
||||
|
||||
PrintOptions Options = PrintOptions::printSwiftFileInterface();
|
||||
PrintOptions Options = PrintOptions::printSwiftFileInterface(
|
||||
Invocation.getFrontendOptions().PrintFullConvention);
|
||||
SmallString<128> Text;
|
||||
llvm::raw_svector_ostream OS(Text);
|
||||
AnnotatingPrinter Printer(IFaceGenCtx->Impl.Info, OS);
|
||||
|
||||
Reference in New Issue
Block a user