[InterfacePrinting] Add a print option to specify whether members of a decl should be separated by empty new lines.

By doing so, SourceKit can print Swift intefaces in the same fashion of what Xcode conventionally does.
rdar://21710381

Swift SVN r30430
This commit is contained in:
Xi Ge
2015-07-21 01:22:44 +00:00
parent 5d3dc0d77b
commit af957bcad8
4 changed files with 9 additions and 14 deletions

View File

@@ -144,6 +144,9 @@ struct PrintOptions {
/// Whether we are printing part of SIL body.
bool PrintInSILBody = false;
/// Whether to use an empty line to separate two members in a single decl.
bool EmptyLineBetweenMembers = false;
enum class ArgAndParamPrintingMode {
ArgumentOnly,
MatchSource,