summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/cl-options.c
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-04-04 01:36:55 +0000
committerReid Kleckner <reid@kleckner.net>2014-04-04 01:36:55 +0000
commit9307fba85dc945a9cd59e530cc940836b7e20eb9 (patch)
tree4c6cf27e41d0aaa491a71098f899cebdeafc336d /clang/test/Driver/cl-options.c
parent992fdc0785462f69917308b9436f39b0c4bb0516 (diff)
downloadbcm5719-llvm-9307fba85dc945a9cd59e530cc940836b7e20eb9.tar.gz
bcm5719-llvm-9307fba85dc945a9cd59e530cc940836b7e20eb9.zip
Add clang-cl alias to allow users to disable c4005
If we ever want three or more aliases, at that point we should put MSVC warning ids in DiagnosticGroups.td. We can use that to support #pragma warning. llvm-svn: 205598
Diffstat (limited to 'clang/test/Driver/cl-options.c')
-rw-r--r--clang/test/Driver/cl-options.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Driver/cl-options.c b/clang/test/Driver/cl-options.c
index a6661311737..84fa2699eef 100644
--- a/clang/test/Driver/cl-options.c
+++ b/clang/test/Driver/cl-options.c
@@ -129,6 +129,10 @@
// WJoined: "-cc1"
// WJoined: "-Wunused-pragmas"
+// For some warning ids, we can map from MSVC warning to Clang warning.
+// RUN: %clang_cl -wd4005 -### -- %s 2>&1 | FileCheck -check-prefix=wd4005 %s
+// wd4005: "-cc1"
+// wd4005: "-Wno-macro-redefined"
// Ignored options. Check that we don't get "unused during compilation" errors.
// (/Zs is for syntax-only)
OpenPOWER on IntegriCloud