Add ASTUnit::LoadFromCompilerInvocation, which does what it says.
Also, add an -ast-from-source option to index-test which allows index-test to run on source files directly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90223 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Frontend/ASTUnit.h 29 additions, 14 deletionsinclude/clang/Frontend/ASTUnit.h
- lib/Frontend/ASTUnit.cpp 95 additions, 4 deletionslib/Frontend/ASTUnit.cpp
- tools/c-index-test/CMakeLists.txt 3 additions, 0 deletionstools/c-index-test/CMakeLists.txt
- tools/c-index-test/Makefile 2 additions, 1 deletiontools/c-index-test/Makefile
- tools/index-test/CMakeLists.txt 2 additions, 0 deletionstools/index-test/CMakeLists.txt
- tools/index-test/Makefile 2 additions, 1 deletiontools/index-test/Makefile
- tools/index-test/index-test.cpp 32 additions, 1 deletiontools/index-test/index-test.cpp
Loading
Please register or sign in to comment