Commit 7a4d20b
committed
Consolidate
With frontend parseable-output removed, `DiagnosticHelper::initDiagnosticConsumers()` depends only on the parsed `CompilerInvocation` and can be invoked once, at the same site that constructs the helper. Move the `libSwiftScan` replay caller to call it immediately after `DiagnosticHelper::create()`, drop the call from `replayCachedCompilerOutputsImpl`, and remove the now-unused `DiagnosticHelper` parameter from both `replayCachedCompilerOutputsImpl` and the public `replayCachedCompilerOutputsForInput`.DiagnosticHelper consumer setup1 parent 0335df7 commit 7a4d20b
3 files changed
Lines changed: 6 additions & 13 deletions
File tree
- include/swift/Frontend
- lib
- Frontend
- Tooling/libSwiftScan
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | 32 | | |
35 | 33 | | |
36 | 34 | | |
| |||
59 | 57 | | |
60 | 58 | | |
61 | 59 | | |
62 | | - | |
63 | 60 | | |
64 | 61 | | |
65 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
164 | 163 | | |
165 | 164 | | |
166 | 165 | | |
167 | | - | |
| 166 | + | |
168 | 167 | | |
169 | 168 | | |
170 | 169 | | |
| |||
284 | 283 | | |
285 | 284 | | |
286 | 285 | | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | 286 | | |
291 | 287 | | |
292 | 288 | | |
| |||
408 | 404 | | |
409 | 405 | | |
410 | 406 | | |
411 | | - | |
412 | | - | |
| 407 | + | |
413 | 408 | | |
414 | 409 | | |
415 | 410 | | |
416 | 411 | | |
417 | 412 | | |
418 | 413 | | |
419 | | - | |
| 414 | + | |
420 | 415 | | |
421 | 416 | | |
422 | 417 | | |
423 | 418 | | |
424 | 419 | | |
425 | | - | |
| 420 | + | |
426 | 421 | | |
427 | 422 | | |
428 | 423 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
987 | 987 | | |
988 | 988 | | |
989 | 989 | | |
| 990 | + | |
990 | 991 | | |
991 | 992 | | |
992 | 993 | | |
| |||
1007 | 1008 | | |
1008 | 1009 | | |
1009 | 1010 | | |
1010 | | - | |
| 1011 | + | |
1011 | 1012 | | |
1012 | 1013 | | |
1013 | 1014 | | |
| |||
0 commit comments