Skip to content

Commit b27bc18

Browse files
committed
Add pretty print and skip synthesized members options to swiftc
1 parent 8dfff8c commit b27bc18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Frontend/CompilerInvocation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2283,8 +2283,8 @@ static void ParseSymbolGraphArgs(symbolgraphgen::SymbolGraphOptions &Opts,
22832283
}
22842284

22852285
// default values for generating symbol graphs during a build
2286-
Opts.PrettyPrint = false;
2287-
Opts.EmitSynthesizedMembers = true;
2286+
Opts.PrettyPrint = Args.hasArg(OPT_pretty_print);
2287+
Opts.EmitSynthesizedMembers = !Args.hasArg(OPT_skip_synthesized_members);
22882288
Opts.PrintMessages = false;
22892289
Opts.IncludeClangDocs = false;
22902290
}

0 commit comments

Comments
 (0)