summaryrefslogtreecommitdiff
path: root/test/Tooling
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2013-06-05 16:23:30 +0000
committerPavel Labath <labath@google.com>2013-06-05 16:23:30 +0000
commit88c200473d133a4e40083af22c316da536bad755 (patch)
tree5a4ce6b84f2e6338451b38954faa913656021861 /test/Tooling
parenta06d585468ae9371eb46a69d6180c2a85e0f456e (diff)
clang-check: Enable specification of additional compiler arguments
Summary: This adds two command-line parameters: -extra-arg and -extra-arg-before, which enable the user to pass additional parameters to the compiler command. Reviewers: klimek CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D919 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183320 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Tooling')
-rw-r--r--test/Tooling/clang-check-extra-arg.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Tooling/clang-check-extra-arg.cpp b/test/Tooling/clang-check-extra-arg.cpp
new file mode 100644
index 0000000000..f671535845
--- /dev/null
+++ b/test/Tooling/clang-check-extra-arg.cpp
@@ -0,0 +1,5 @@
+// RUN: clang-check "%s" -extra-arg=-Wunimplemented-warning -extra-arg-before=-Wunimplemented-warning-before -- -c 2>&1 | FileCheck %s
+
+// CHECK: unknown warning option '-Wunimplemented-warning-before'
+// CHECK: unknown warning option '-Wunimplemented-warning'
+int a(){}