Skip to content

Commit c1be989

Browse files
Fix code style
1 parent 5497bfb commit c1be989

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/Driver/Compilation.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,8 +640,7 @@ int Compilation::performJobsImpl() {
640640
if (Signal.hasValue()) {
641641
Diags.diagnose(SourceLoc(), diag::error_command_signalled,
642642
SignalledCmd->getSource().getClassName(), Signal.getValue());
643-
}
644-
else {
643+
} else {
645644
Diags.diagnose(SourceLoc(), diag::error_command_signalled_without_signal_number,
646645
SignalledCmd->getSource().getClassName());
647646
}

lib/Driver/ParseableOutput.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ class SignalledMessage : public TaskOutputMessage {
204204
Optional<int> Signal;
205205
public:
206206
SignalledMessage(const Job &Cmd, ProcessId Pid, StringRef Output,
207-
StringRef ErrorMsg, Optional<int> Signal) : TaskOutputMessage("signalled", Cmd,
208-
Pid, Output),
209-
ErrorMsg(ErrorMsg), Signal(Signal) {}
207+
StringRef ErrorMsg, Optional<int> Signal) :
208+
TaskOutputMessage("signalled", Cmd, Pid, Output), ErrorMsg(ErrorMsg),
209+
Signal(Signal) {}
210210

211211
void provideMapping(swift::json::Output &out) override {
212212
TaskOutputMessage::provideMapping(out);
@@ -262,7 +262,8 @@ void parseable_output::emitFinishedMessage(raw_ostream &os,
262262
void parseable_output::emitSignalledMessage(raw_ostream &os,
263263
const Job &Cmd, ProcessId Pid,
264264
StringRef ErrorMsg,
265-
StringRef Output, Optional<int> Signal) {
265+
StringRef Output,
266+
Optional<int> Signal) {
266267
SignalledMessage msg(Cmd, Pid, Output, ErrorMsg, Signal);
267268
emitMessage(os, msg);
268269
}

0 commit comments

Comments
 (0)