mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user