summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Basic/VirtualFileSystemTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Allow multi-component paths in VFS file nodesBen Langmuir2014-02-251-0/+61
| | | | | | | | | | | | | | | | This allows the 'name' field to contain a path, like { 'type': 'directory', 'name': '/path/to/dir', 'contents': [ ... ] } which not only simplifies reading and writing these files (for humans), but makes it possible to easily modify locations via textual replacement, which would not have worked in the old scheme. E.g. sed s:<ROOT>:<NEW ROOT> llvm-svn: 202109
* Improve some gtest assertionsBen Langmuir2014-02-241-26/+26
| | | | | | | As requested during review, compare pointers to NULL explicitly to make what's going on more clear. llvm-svn: 202090
* Pass through context for DiagHandler in VFSBen Langmuir2014-02-241-27/+31
| | | | | | | This allows the unit tests to not use global state when checking diagnostics. llvm-svn: 202072
* Add a VFSFromYAML class and a parser to create itBen Langmuir2014-02-211-15/+263
| | | | | | | | | | | | | | | Provides a way to create a virtual file system using a YAML file that supports mapping a file to a path on an 'external' file system. The external file system will typically be the 'real' file system, but for testing it can be changed. A future patch will add a clang option to allow the user to specify such a file and overlay it, but for now this code is only exercised by the unit tests. Differential Revision: http://llvm-reviews.chandlerc.com/D2835 llvm-svn: 201905
* Recommit virtual file systemBen Langmuir2014-02-201-0/+216
| | | | | | | | | | | Previously reverted in r201755 due to causing an assertion failure. I've removed the offending assertion, and taught the CompilerInstance to create a default virtual file system inside createFileManager. In the future, we should be able to reach into the CompilerInvocation to customize this behaviour without breaking clients that don't care. llvm-svn: 201818
* Reverting the virtual file system implementation, because it triggers an ↵Juergen Ributzka2014-02-201-216/+0
| | | | | | | | | | assertion in our internal build bots. This reverts commits 201618, 201635, 201636, 201639, 201685, 201691, and 201696. llvm-svn: 201755
* Fix some test issues in VirtualFileSystemTestBen Langmuir2014-02-191-14/+9
| | | | | | Use camel-case names, remove some dead code, and fix a copy-and-pasted test. llvm-svn: 201691
* Attempt to appease C++11 buildbotsBen Langmuir2014-02-191-20/+38
| | | | | | | | Explicit operator bool doesn't not play nicely with gtest assertion macros (i.e. it performs as advertised and I wish that gtest subverted it for me). llvm-svn: 201639
* Add an OverlayFileSystem classBen Langmuir2014-02-191-0/+203
Provides a way to merge multiple vfs::FileSystem objects into a single filesystem. llvm-svn: 201635
OpenPOWER on IntegriCloud