Commit 4a4bdde
authored
[clang] Delay normalization of
This PR is part of an effort to remove file system usage from the
command line parsing code. The reason for that is that it's impossible
to do file system access correctly without a configured VFS, and the VFS
can only be configured after the command line is parsed. I don't want to
intertwine command line parsing and VFS configuration, so I decided to
perform the file system access after the command line is parsed and the
VFS is configured - ideally right before the file system entity is used
for the first time.
This patch delays normalization of the module cache path until
`CompilerInstance` is asked for the cache path in the current
compilation context.-fmodules-cache-path (#150123)1 parent c087da4 commit 4a4bdde
File tree
7 files changed
+51
-25
lines changed- clang
- include/clang
- Driver
- Frontend
- lib
- Frontend
- Serialization
- Tooling/DependencyScanning
- test/Modules
7 files changed
+51
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3281 | 3281 | | |
3282 | 3282 | | |
3283 | 3283 | | |
3284 | | - | |
| 3284 | + | |
| 3285 | + | |
3285 | 3286 | | |
3286 | 3287 | | |
3287 | 3288 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
705 | 705 | | |
706 | 706 | | |
707 | 707 | | |
| 708 | + | |
| 709 | + | |
708 | 710 | | |
709 | 711 | | |
710 | 712 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
553 | 553 | | |
554 | 554 | | |
555 | 555 | | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
556 | 564 | | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
557 | 570 | | |
558 | | - | |
559 | | - | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
560 | 575 | | |
561 | 576 | | |
562 | 577 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3315 | 3315 | | |
3316 | 3316 | | |
3317 | 3317 | | |
3318 | | - | |
3319 | | - | |
3320 | | - | |
3321 | 3318 | | |
3322 | 3319 | | |
3323 | 3320 | | |
| |||
3420 | 3417 | | |
3421 | 3418 | | |
3422 | 3419 | | |
3423 | | - | |
3424 | | - | |
| 3420 | + | |
3425 | 3421 | | |
3426 | 3422 | | |
3427 | 3423 | | |
| |||
3434 | 3430 | | |
3435 | 3431 | | |
3436 | 3432 | | |
3437 | | - | |
3438 | | - | |
3439 | | - | |
3440 | | - | |
3441 | | - | |
3442 | | - | |
3443 | | - | |
3444 | | - | |
3445 | | - | |
3446 | | - | |
3447 | | - | |
3448 | 3433 | | |
3449 | 3434 | | |
3450 | 3435 | | |
| |||
5021 | 5006 | | |
5022 | 5007 | | |
5023 | 5008 | | |
5024 | | - | |
5025 | | - | |
| 5009 | + | |
5026 | 5010 | | |
5027 | 5011 | | |
5028 | 5012 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
1710 | 1711 | | |
1711 | 1712 | | |
1712 | 1713 | | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
1713 | 1718 | | |
1714 | 1719 | | |
1715 | | - | |
| 1720 | + | |
1716 | 1721 | | |
1717 | 1722 | | |
1718 | 1723 | | |
| |||
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
452 | | - | |
453 | | - | |
454 | | - | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
455 | 456 | | |
456 | 457 | | |
457 | 458 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments