Adds support for auto-detection of compilation databases
from a source file and changes clang-check to make use of this. This makes clang-check just work on in-tree builds, and allows easy setup via a symlink per source directory to make clang-check work without any extra configuration. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159990 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Tooling/CompilationDatabase.h 7 additions, 1 deletioninclude/clang/Tooling/CompilationDatabase.h
- include/clang/Tooling/Tooling.h 16 additions, 0 deletionsinclude/clang/Tooling/Tooling.h
- lib/Tooling/CompilationDatabase.cpp 18 additions, 1 deletionlib/Tooling/CompilationDatabase.cpp
- lib/Tooling/Tooling.cpp 7 additions, 20 deletionslib/Tooling/Tooling.cpp
- test/Tooling/auto-detect-from-source-parent-of-cwd.cpp 8 additions, 0 deletionstest/Tooling/auto-detect-from-source-parent-of-cwd.cpp
- test/Tooling/auto-detect-from-source-parent.cpp 8 additions, 0 deletionstest/Tooling/auto-detect-from-source-parent.cpp
- test/Tooling/auto-detect-from-source.cpp 8 additions, 0 deletionstest/Tooling/auto-detect-from-source.cpp
- test/Tooling/clang-check-args.cpp 1 addition, 1 deletiontest/Tooling/clang-check-args.cpp
- test/Tooling/clang-check-builtin-headers.cpp 1 addition, 1 deletiontest/Tooling/clang-check-builtin-headers.cpp
- test/Tooling/clang-check-chdir.cpp 1 addition, 1 deletiontest/Tooling/clang-check-chdir.cpp
- test/Tooling/clang-check-pwd.cpp 1 addition, 1 deletiontest/Tooling/clang-check-pwd.cpp
- test/Tooling/clang-check.cpp 1 addition, 1 deletiontest/Tooling/clang-check.cpp
- test/Tooling/multi-jobs.cpp 1 addition, 1 deletiontest/Tooling/multi-jobs.cpp
- tools/clang-check/ClangCheck.cpp 10 additions, 4 deletionstools/clang-check/ClangCheck.cpp
Loading
Please register or sign in to comment