diff options
| author | Manuel Klimek <klimek@google.com> | 2012-07-10 13:10:51 +0000 |
|---|---|---|
| committer | Manuel Klimek <klimek@google.com> | 2012-07-10 13:10:51 +0000 |
| commit | 65fd0e1fd3c7fe24bb09e654d228c9584c2fa6ff (patch) | |
| tree | c6a6969bd885beb99cae9776826065fdfda3f8bb /clang/test/Tooling/clang-check-pwd.cpp | |
| parent | 1dc44dcedd0bc93e267bcc5357fc2925942ca20e (diff) | |
| download | bcm5719-llvm-65fd0e1fd3c7fe24bb09e654d228c9584c2fa6ff.tar.gz bcm5719-llvm-65fd0e1fd3c7fe24bb09e654d228c9584c2fa6ff.zip | |
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.
llvm-svn: 159990
Diffstat (limited to 'clang/test/Tooling/clang-check-pwd.cpp')
| -rw-r--r-- | clang/test/Tooling/clang-check-pwd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Tooling/clang-check-pwd.cpp b/clang/test/Tooling/clang-check-pwd.cpp index 8dd9e6e926d..374c579245b 100644 --- a/clang/test/Tooling/clang-check-pwd.cpp +++ b/clang/test/Tooling/clang-check-pwd.cpp @@ -2,7 +2,7 @@ // RUN: mkdir %t // RUN: echo "[{\"directory\":\".\",\"command\":\"clang++ -c %t/test.cpp\",\"file\":\"%t/test.cpp\"}]" | sed -e 's/\\/\\\\/g' > %t/compile_commands.json // RUN: cp "%s" "%t/test.cpp" -// RUN: PWD="%t" clang-check "%t" "test.cpp" 2>&1|FileCheck %s +// RUN: PWD="%t" clang-check -p "%t" "test.cpp" 2>&1|FileCheck %s // FIXME: Make the above easier. // CHECK: C++ requires |

