]> granicus.if.org Git - clang/commit
Currently we can only remap a file by creating a MemoryBuffer and replacing the file...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 5 Mar 2011 01:03:53 +0000 (01:03 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 5 Mar 2011 01:03:53 +0000 (01:03 +0000)
commitb1c86492f9a9bef01a4567408c22f961bbd604fe
tree379b4af3319f280c1a1f938a6f39a21d97f896ec
parent15727ddb11405c45372150b5bfb07dbfa4c9960b
Currently we can only remap a file by creating a MemoryBuffer and replacing the file contents with it.
Allow remapping a file by specifying another filename whose contents should be loaded if the original
file gets loaded. This allows to override files without having to create & load buffers in advance.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127052 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/SourceManager.h
include/clang/Frontend/ASTUnit.h
lib/AST/ASTImporter.cpp
lib/Basic/SourceManager.cpp
lib/Frontend/ASTUnit.cpp
lib/Frontend/CacheTokens.cpp
lib/Serialization/ASTWriter.cpp
tools/libclang/CIndexInclusionStack.cpp