@@ -43,7 +43,7 @@ namespace {
43
43
expected.erase (expected.begin ());
44
44
}
45
45
46
- bool finishProcessing () override {
46
+ bool finishProcessing (SourceManager & ) override {
47
47
EXPECT_FALSE (hasFinished);
48
48
if (previous)
49
49
EXPECT_TRUE (previous->hasFinished );
@@ -68,7 +68,7 @@ TEST(FileSpecificDiagnosticConsumer, SubConsumersFinishInOrder) {
68
68
consumers.emplace_back (" " , std::move (consumerUnaffiliated));
69
69
70
70
FileSpecificDiagnosticConsumer topConsumer (consumers);
71
- topConsumer.finishProcessing ();
71
+ topConsumer.finishProcessing (sourceMgr );
72
72
}
73
73
74
74
TEST (FileSpecificDiagnosticConsumer, InvalidLocDiagsGoToEveryConsumer) {
@@ -89,7 +89,7 @@ TEST(FileSpecificDiagnosticConsumer, InvalidLocDiagsGoToEveryConsumer) {
89
89
FileSpecificDiagnosticConsumer topConsumer (consumers);
90
90
topConsumer.handleDiagnostic (sourceMgr, SourceLoc (), DiagnosticKind::Error,
91
91
" dummy" , {}, DiagnosticInfo ());
92
- topConsumer.finishProcessing ();
92
+ topConsumer.finishProcessing (sourceMgr );
93
93
}
94
94
95
95
TEST (FileSpecificDiagnosticConsumer, ErrorsWithLocationsGoToExpectedConsumers) {
@@ -139,7 +139,7 @@ TEST(FileSpecificDiagnosticConsumer, ErrorsWithLocationsGoToExpectedConsumers) {
139
139
" back" , {}, DiagnosticInfo ());
140
140
topConsumer.handleDiagnostic (sourceMgr, backOfB, DiagnosticKind::Error,
141
141
" back" , {}, DiagnosticInfo ());
142
- topConsumer.finishProcessing ();
142
+ topConsumer.finishProcessing (sourceMgr );
143
143
}
144
144
145
145
TEST (FileSpecificDiagnosticConsumer,
@@ -193,7 +193,7 @@ TEST(FileSpecificDiagnosticConsumer,
193
193
" back" , {}, DiagnosticInfo ());
194
194
topConsumer.handleDiagnostic (sourceMgr, backOfB, DiagnosticKind::Error,
195
195
" back" , {}, DiagnosticInfo ());
196
- topConsumer.finishProcessing ();
196
+ topConsumer.finishProcessing (sourceMgr );
197
197
}
198
198
199
199
TEST (FileSpecificDiagnosticConsumer, WarningsAndRemarksAreTreatedLikeErrors) {
@@ -234,7 +234,7 @@ TEST(FileSpecificDiagnosticConsumer, WarningsAndRemarksAreTreatedLikeErrors) {
234
234
" remark" , {}, DiagnosticInfo ());
235
235
topConsumer.handleDiagnostic (sourceMgr, frontOfB, DiagnosticKind::Remark,
236
236
" remark" , {}, DiagnosticInfo ());
237
- topConsumer.finishProcessing ();
237
+ topConsumer.finishProcessing (sourceMgr );
238
238
}
239
239
240
240
TEST (FileSpecificDiagnosticConsumer, NotesAreAttachedToErrors) {
@@ -296,7 +296,7 @@ TEST(FileSpecificDiagnosticConsumer, NotesAreAttachedToErrors) {
296
296
" note" , {}, DiagnosticInfo ());
297
297
topConsumer.handleDiagnostic (sourceMgr, backOfA, DiagnosticKind::Note,
298
298
" note" , {}, DiagnosticInfo ());
299
- topConsumer.finishProcessing ();
299
+ topConsumer.finishProcessing (sourceMgr );
300
300
}
301
301
302
302
TEST (FileSpecificDiagnosticConsumer, NotesAreAttachedToWarningsAndRemarks) {
@@ -358,7 +358,7 @@ TEST(FileSpecificDiagnosticConsumer, NotesAreAttachedToWarningsAndRemarks) {
358
358
" note" , {}, DiagnosticInfo ());
359
359
topConsumer.handleDiagnostic (sourceMgr, backOfA, DiagnosticKind::Note,
360
360
" note" , {}, DiagnosticInfo ());
361
- topConsumer.finishProcessing ();
361
+ topConsumer.finishProcessing (sourceMgr );
362
362
}
363
363
364
364
TEST (FileSpecificDiagnosticConsumer, NotesAreAttachedToErrorsEvenAcrossFiles) {
@@ -417,7 +417,7 @@ TEST(FileSpecificDiagnosticConsumer, NotesAreAttachedToErrorsEvenAcrossFiles) {
417
417
" note" , {}, DiagnosticInfo ());
418
418
topConsumer.handleDiagnostic (sourceMgr, backOfA, DiagnosticKind::Note,
419
419
" note" , {}, DiagnosticInfo ());
420
- topConsumer.finishProcessing ();
420
+ topConsumer.finishProcessing (sourceMgr );
421
421
}
422
422
423
423
TEST (FileSpecificDiagnosticConsumer,
@@ -480,7 +480,7 @@ TEST(FileSpecificDiagnosticConsumer,
480
480
" note" , {}, DiagnosticInfo ());
481
481
topConsumer.handleDiagnostic (sourceMgr, backOfA, DiagnosticKind::Note,
482
482
" note" , {}, DiagnosticInfo ());
483
- topConsumer.finishProcessing ();
483
+ topConsumer.finishProcessing (sourceMgr );
484
484
}
485
485
486
486
@@ -529,5 +529,5 @@ TEST(FileSpecificDiagnosticConsumer,
529
529
" error" , {}, DiagnosticInfo ());
530
530
topConsumer.handleDiagnostic (sourceMgr, SourceLoc (), DiagnosticKind::Note,
531
531
" note" , {}, DiagnosticInfo ());
532
- topConsumer.finishProcessing ();
532
+ topConsumer.finishProcessing (sourceMgr );
533
533
}
0 commit comments