summaryrefslogtreecommitdiffstats
path: root/clang/test/Misc/remap-file.c
Commit message (Collapse)AuthorAgeFilesLines
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-3/+3
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Update test and CIndex to use -FOO BAR form for ↵Daniel Dunbar2009-12-031-3/+3
| | | | | | -{remap-file,code-completion-at}. llvm-svn: 90416
* Extend -remap-file=from;to to permit mapping from a non-existentDouglas Gregor2009-12-021-3/+6
| | | | | | | | | | | | file. This is accomplished by introducing the notion of a "virtual" file into the file manager, which provides a FileEntry* for a named file whose size and modification time are known but which may not exist on disk. Added a cute little test that remaps both a .c file and a .h file it includes to alternative files. llvm-svn: 90329
* Introduce a new clang-cc option Douglas Gregor2009-12-021-0/+5
-remap-file=from;to which takes the file "from" and transparently replaces its contents with the contents of the file "to" from the source manager's perspective. This is the moral equivalent of cp from saved cp to from <call clang> cp saved from rm saved without all of the pesky file copying. llvm-svn: 90307
OpenPOWER on IntegriCloud