diff options
author | Pavel Labath <labath@google.com> | 2013-06-05 16:23:30 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2013-06-05 16:23:30 +0000 |
commit | 88c200473d133a4e40083af22c316da536bad755 (patch) | |
tree | 5a4ce6b84f2e6338451b38954faa913656021861 /test | |
parent | a06d585468ae9371eb46a69d6180c2a85e0f456e (diff) | |
download | clang-88c200473d133a4e40083af22c316da536bad755.tar.gz |
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')
-rw-r--r-- | test/Tooling/clang-check-extra-arg.cpp | 5 |
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(){} |