@@ -210,12 +210,11 @@ class FileSpecificDiagnosticConsumer : public DiagnosticConsumer {
210
210
// / Index into Subconsumers vector for this subconsumer.
211
211
// / Should be const but then the sort won't compile.
212
212
/* const*/ unsigned subconsumerIndex;
213
-
213
+
214
214
public:
215
215
unsigned getSubconsumerIndex () const { return subconsumerIndex; }
216
-
217
- ConsumerAndRange (const CharSourceRange range,
218
- unsigned subconsumerIndex)
216
+
217
+ ConsumerAndRange (const CharSourceRange range, unsigned subconsumerIndex)
219
218
: range(range), subconsumerIndex(subconsumerIndex) {}
220
219
221
220
// / Compare according to range:
@@ -236,12 +235,12 @@ class FileSpecificDiagnosticConsumer : public DiagnosticConsumer {
236
235
return compare (getRawLoc (range.getEnd ()).getPointer (),
237
236
getRawLoc (loc).getPointer ());
238
237
}
239
-
238
+
240
239
bool contains (const SourceLoc loc) const { return range.contains (loc); }
241
240
};
242
241
243
242
private:
244
- Subconsumer &operator [](const ConsumerAndRange& consumerAndRange) {
243
+ Subconsumer &operator [](const ConsumerAndRange & consumerAndRange) {
245
244
return Subconsumers[consumerAndRange.getSubconsumerIndex ()];
246
245
}
247
246
// / The consumers owned by this FileSpecificDiagnosticConsumer, sorted by
@@ -262,8 +261,7 @@ class FileSpecificDiagnosticConsumer : public DiagnosticConsumer {
262
261
// /
263
262
// / If None, Note diagnostics are sent to every consumer.
264
263
// / If null, diagnostics are suppressed.
265
- Optional<ConsumerAndRange *>
266
- ConsumerSpecificInfoForSubsequentNotes = None;
264
+ Optional<ConsumerAndRange *> ConsumerSpecificInfoForSubsequentNotes = None;
267
265
268
266
bool HasAnErrorBeenConsumed = false ;
269
267
@@ -295,9 +293,8 @@ class FileSpecificDiagnosticConsumer : public DiagnosticConsumer {
295
293
// / Returns nullptr if diagnostic is to be suppressed,
296
294
// / None if diagnostic is to be distributed to every consumer,
297
295
// / a particular consumer if diagnostic goes there.
298
- Optional<ConsumerAndRange *>
299
- consumerAndRangeForLocation (SourceManager &SM,
300
- SourceLoc loc) const ;
296
+ Optional<ConsumerAndRange *> consumerAndRangeForLocation (SourceManager &SM,
297
+ SourceLoc loc) const ;
301
298
};
302
299
303
300
} // end namespace swift
0 commit comments