mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #12920 from davidungar/Move-input-conversion
Move input conversion
This commit is contained in:
@@ -1917,7 +1917,7 @@ static int doPrintSwiftFileInterface(const CompilerInvocation &InitInvok,
|
||||
bool AnnotatePrint) {
|
||||
CompilerInvocation Invocation(InitInvok);
|
||||
Invocation.addInputFilename(SourceFilename);
|
||||
Invocation.getFrontendOptions().Inputs.clearPrimaryInput();
|
||||
Invocation.getFrontendOptions().Inputs.setPrimaryInputToFirstFile();
|
||||
Invocation.getLangOptions().AttachCommentsToDecls = true;
|
||||
CompilerInstance CI;
|
||||
// Display diagnostics to stderr.
|
||||
@@ -1948,7 +1948,7 @@ static int doPrintDecls(const CompilerInvocation &InitInvok,
|
||||
bool AnnotatePrint) {
|
||||
CompilerInvocation Invocation(InitInvok);
|
||||
Invocation.addInputFilename(SourceFilename);
|
||||
Invocation.getFrontendOptions().Inputs.clearPrimaryInput();
|
||||
Invocation.getFrontendOptions().Inputs.setPrimaryInputToFirstFile();
|
||||
Invocation.getLangOptions().AttachCommentsToDecls = true;
|
||||
CompilerInstance CI;
|
||||
// Display diagnostics to stderr.
|
||||
|
||||
Reference in New Issue
Block a user