Commit c74ce16
committed
[ASTUnit] Use
Use `createPhysicalFileSystem` instead of `getRealFileSystem` to
avoid affecting the process' current working directory, and set it
at the top of `ASTUnit::LoadFromCommandLine` such that the driver
used for argument parsing and the ASTUnit share the same VFS. This
ensures that '-working-directory' correctly sets the VFS working
directory in addition to the FileManager working directory.createPhysicalFileSystem if no VFS was provided1 parent dcb09f5 commit c74ce16
File tree
2 files changed
+38
-2
lines changed- clang
- lib/Frontend
- unittests/Frontend
2 files changed
+38
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1752 | 1752 | | |
1753 | 1753 | | |
1754 | 1754 | | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
1755 | 1761 | | |
1756 | 1762 | | |
1757 | 1763 | | |
| |||
1801 | 1807 | | |
1802 | 1808 | | |
1803 | 1809 | | |
1804 | | - | |
1805 | | - | |
1806 | 1810 | | |
1807 | 1811 | | |
1808 | 1812 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
181 | 213 | | |
0 commit comments