diff options
author | Pavel Labath <labath@google.com> | 2013-06-06 11:52:19 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2013-06-06 11:52:19 +0000 |
commit | 63d5335aea916584b76790af1f1ed7caeaf8efeb (patch) | |
tree | dbe9ecc8d0f54966d1ca8233775c838ff6523c87 /test/Tooling | |
parent | 40cba90626044ff28b58c33e743366e94c898227 (diff) |
ClangTool: strip -o from the command line
Summary:
This patch creates a new ArgumentsAdjuster, which removes all -o parameters from
the command line. This adjuster is inserted by default into the ClangTool pipeline.
Reviewers: klimek
CC: cfe-commits, revane
Differential Revision: http://llvm-reviews.chandlerc.com/D925
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183398 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Tooling')
-rw-r--r-- | test/Tooling/clang-check-strip-o.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Tooling/clang-check-strip-o.cpp b/test/Tooling/clang-check-strip-o.cpp new file mode 100644 index 0000000000..38f09a0f92 --- /dev/null +++ b/test/Tooling/clang-check-strip-o.cpp @@ -0,0 +1,11 @@ +// RUN: rm -rf %t +// RUN: mkdir %t +// RUN: echo '[{"directory":".","command":"clang++ -c %t/test.cpp -o foo -ofoo","file":"%t/test.cpp"}]' | sed -e 's/\\/\//g' > %t/compile_commands.json +// RUN: cp "%s" "%t/test.cpp" +// RUN: clang-check -p "%t" "%t/test.cpp" -extra-arg=-v 2>&1|FileCheck %s +// FIXME: Make the above easier. + +// CHECK: Invocation +// CHECK-NOT: {{ -v}} +// CHECK: C++ requires +invalid; |