From: Hans Wennborg Date: Thu, 11 Jun 2015 18:14:11 +0000 (+0000) Subject: clang-cl: Add an alias for /wd4910 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=812266bc974e3986b97bbc7ac7da7d2f406d478c;p=clang clang-cl: Add an alias for /wd4910 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@239548 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Driver/CLCompatOptions.td b/include/clang/Driver/CLCompatOptions.td index e217cb755f..8f7d02e9d4 100644 --- a/include/clang/Driver/CLCompatOptions.td +++ b/include/clang/Driver/CLCompatOptions.td @@ -139,6 +139,8 @@ def _SLASH_wd4005 : CLFlag<"wd4005">, Alias, AliasArgs<["no-macro-redefined"]>; def _SLASH_wd4996 : CLFlag<"wd4996">, Alias, AliasArgs<["no-deprecated-declarations"]>; +def _SLASH_wd4910 : CLFlag<"wd4910">, Alias, + AliasArgs<["no-dllexport-explicit-instantiation-decl"]>; def _SLASH_vd : CLJoined<"vd">, HelpText<"Control vtordisp placement">, Alias; def _SLASH_Zc_sizedDealloc : CLFlag<"Zc:sizedDealloc">, diff --git a/test/Driver/cl-options.c b/test/Driver/cl-options.c index 244e6869d0..a1145f106d 100644 --- a/test/Driver/cl-options.c +++ b/test/Driver/cl-options.c @@ -204,10 +204,11 @@ // NOSTRICT: "-relaxed-aliasing" // For some warning ids, we can map from MSVC warning to Clang warning. -// RUN: %clang_cl -wd4005 -wd4996 -### -- %s 2>&1 | FileCheck -check-prefix=Wno %s +// RUN: %clang_cl -wd4005 -wd4996 -wd4910 -### -- %s 2>&1 | FileCheck -check-prefix=Wno %s // Wno: "-cc1" // Wno: "-Wno-macro-redefined" // Wno: "-Wno-deprecated-declarations" +// Wno: "-Wno-dllexport-explicit-instantiation-decl" // Ignored options. Check that we don't get "unused during compilation" errors. // RUN: %clang_cl /c \