Skip to content

Commit 7428fee

Browse files
author
David Ungar
committed
Format
1 parent d033052 commit 7428fee

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/AST/DiagnosticConsumer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ FileSpecificDiagnosticConsumer::subconsumerForLocation(SourceManager &SM,
117117
// Diagnostics with invalid locations always go to every consumer.
118118
if (loc.isInvalid())
119119
return None;
120-
120+
121121
// What if a there's a consumer for fixits but there is no fixits output path?
122122
// Subconsumers will be empty in that case.
123123
if (Subconsumers.empty())
@@ -224,7 +224,7 @@ FileSpecificDiagnosticConsumer::findSubconsumerForNonNote(
224224
subconsumerForLocation(SM, bufferIndirectlyCausingDiagnostic);
225225
assert(!currentPrimarySubconsumer ||
226226
(*currentPrimarySubconsumer)->getConsumer() &&
227-
"current primary must have a .dia file");
227+
"current primary must have a .dia file");
228228
return currentPrimarySubconsumer;
229229
}
230230

lib/FrontendTool/FrontendTool.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1544,8 +1544,8 @@ createDispatchingDiagnosticConsumerIfNeeded(
15441544
subconsumers.emplace_back(input.file(), std::move(consumer));
15451545
return false;
15461546
});
1547-
// For batch mode, the compiler must sometimes swallow diagnostics pertaining to
1548-
// non-primary files in order to avoid Xcode showing the same diagnostic
1547+
// For batch mode, the compiler must sometimes swallow diagnostics pertaining
1548+
// to non-primary files in order to avoid Xcode showing the same diagnostic
15491549
// multiple times. So, create a diagnostic "eater" for those non-primary
15501550
// files.
15511551
//

0 commit comments

Comments
 (0)