llvm-project/clang/test/VFS
Ben Langmuir 5de00f3b56 Stopgap fix for finding module for a file mapped in the VFS
If we lookup a path using its 'real' path first, we need to ensure that
when we run header search we still use the VFS-mapped path or we will
not be able to find the corresponding module for the header.

The real problem is that we tie the name of a file to its underlying
FileEntry, which is uniqued by inode, so we only ever get the first name
it is looked up by. This doesn't work with modules, which rely on a
specific file system structure.  I'm hoping to have time to write up a
proposal for fixing this more permanently soon, but as a stopgap this
patch updates the name of the file's directory if it comes from a VFS
mapping.

llvm-svn: 209534
2014-05-23 18:15:47 +00:00
..
Inputs Stopgap fix for finding module for a file mapped in the VFS 2014-05-23 18:15:47 +00:00
external-names.c Reapply fixed "Honour 'use-external-names' in FileManager" 2014-02-28 21:16:07 +00:00
framework-import.m
implicit-include.c
include-mixed-real-and-virtual.c
include-real-from-virtual.c
include-virtual-from-real.c
include.c
module-import.m Add a test where the module map is overriden in the vfs 2014-04-04 16:42:53 +00:00
parse-errors.c
real-path-found-first.m Stopgap fix for finding module for a file mapped in the VFS 2014-05-23 18:15:47 +00:00
relative-path.c Support relative paths in VFSFromYAML 2014-03-04 22:34:50 +00:00
umbrella-mismatch.m When module umbrellas change, rebuild them 2014-04-10 17:57:43 +00:00