@@ -95,8 +95,7 @@ class DiagnosticConsumer {
95
95
// /
96
96
// / \param Info Extra information associated with the diagnostic.
97
97
virtual void handleDiagnostic (SourceManager &SM, SourceLoc Loc,
98
- DiagnosticKind Kind,
99
- StringRef FormatString,
98
+ DiagnosticKind Kind, StringRef FormatString,
100
99
ArrayRef<DiagnosticArgument> FormatArgs,
101
100
const DiagnosticInfo &Info,
102
101
StringRef currentPrimaryInput) = 0;
@@ -117,8 +116,7 @@ class DiagnosticConsumer {
117
116
// / DiagnosticConsumer that discards all diagnostics.
118
117
class NullDiagnosticConsumer : public DiagnosticConsumer {
119
118
public:
120
- void handleDiagnostic (SourceManager &SM, SourceLoc Loc,
121
- DiagnosticKind Kind,
119
+ void handleDiagnostic (SourceManager &SM, SourceLoc Loc, DiagnosticKind Kind,
122
120
StringRef FormatString,
123
121
ArrayRef<DiagnosticArgument> FormatArgs,
124
122
const DiagnosticInfo &Info,
@@ -131,8 +129,7 @@ class ForwardingDiagnosticConsumer : public DiagnosticConsumer {
131
129
DiagnosticEngine &TargetEngine;
132
130
public:
133
131
ForwardingDiagnosticConsumer (DiagnosticEngine &Target);
134
- void handleDiagnostic (SourceManager &SM, SourceLoc Loc,
135
- DiagnosticKind Kind,
132
+ void handleDiagnostic (SourceManager &SM, SourceLoc Loc, DiagnosticKind Kind,
136
133
StringRef FormatString,
137
134
ArrayRef<DiagnosticArgument> FormatArgs,
138
135
const DiagnosticInfo &Info,
@@ -194,8 +191,7 @@ class FileSpecificDiagnosticConsumer : public DiagnosticConsumer {
194
191
std::unique_ptr<DiagnosticConsumer> consumer)
195
192
: inputFileName(inputFileName), consumer(std::move(consumer)) {}
196
193
197
- void handleDiagnostic (SourceManager &SM, SourceLoc Loc,
198
- DiagnosticKind Kind,
194
+ void handleDiagnostic (SourceManager &SM, SourceLoc Loc, DiagnosticKind Kind,
199
195
StringRef FormatString,
200
196
ArrayRef<DiagnosticArgument> FormatArgs,
201
197
const DiagnosticInfo &Info,
@@ -291,8 +287,7 @@ class FileSpecificDiagnosticConsumer : public DiagnosticConsumer {
291
287
SmallVectorImpl<Subconsumer> &consumers);
292
288
293
289
public:
294
- void handleDiagnostic (SourceManager &SM, SourceLoc Loc,
295
- DiagnosticKind Kind,
290
+ void handleDiagnostic (SourceManager &SM, SourceLoc Loc, DiagnosticKind Kind,
296
291
StringRef FormatString,
297
292
ArrayRef<DiagnosticArgument> FormatArgs,
298
293
const DiagnosticInfo &Info,
@@ -320,9 +315,8 @@ class FileSpecificDiagnosticConsumer : public DiagnosticConsumer {
320
315
DiagnosticKind Kind);
321
316
322
317
Optional<FileSpecificDiagnosticConsumer::Subconsumer *>
323
- findSubconsumerForPrimaryCausingErrorInNonprimary (SourceManager &SM,
324
- DiagnosticKind Kind,
325
- StringRef currentPrimaryInput);
318
+ findSubconsumerForPrimaryCausingErrorInNonprimary (
319
+ SourceManager &SM, DiagnosticKind Kind, StringRef currentPrimaryInput);
326
320
};
327
321
328
322
} // end namespace swift
0 commit comments