mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Added support for specifying the terminator used by Command::printCommandLine.
This defaults to "\n", so this is NFC for existing clients. Swift SVN r20848
This commit is contained in:
@@ -99,10 +99,10 @@ void Command::printArguments(llvm::raw_ostream &os,
|
||||
[&] { os << ' '; });
|
||||
}
|
||||
|
||||
|
||||
void Command::printCommandLine(llvm::raw_ostream &os) const {
|
||||
void Command::printCommandLine(llvm::raw_ostream &os,
|
||||
StringRef Terminator) const {
|
||||
escapeAndPrintString(os, Executable);
|
||||
os << ' ';
|
||||
printArguments(os, Arguments);
|
||||
os << '\n';
|
||||
os << Terminator;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user