ki.stfu updated this revision to Diff 290697. ki.stfu added a comment. Add tests
CHANGES SINCE LAST ACTION https://reviews.llvm.org/D87360/new/ https://reviews.llvm.org/D87360 Files: clang/include/clang/Driver/Options.td clang/test/Driver/cl-options.c Index: clang/test/Driver/cl-options.c =================================================================== --- clang/test/Driver/cl-options.c +++ clang/test/Driver/cl-options.c @@ -330,10 +330,11 @@ // CHECK-CHAR8_T_: "-fno-char8_t" // For some warning ids, we can map from MSVC warning to Clang warning. -// RUN: %clang_cl -wd4005 -wd4100 -wd4910 -wd4996 -### -- %s 2>&1 | FileCheck -check-prefix=Wno %s +// RUN: %clang_cl -wd4005 -wd4100 -wd4101 -wd4910 -wd4996 -### -- %s 2>&1 | FileCheck -check-prefix=Wno %s // Wno: "-cc1" // Wno: "-Wno-macro-redefined" // Wno: "-Wno-unused-parameter" +// Wno: "-Wno-unused-variable" // Wno: "-Wno-dllexport-explicit-instantiation-decl" // Wno: "-Wno-deprecated-declarations" Index: clang/include/clang/Driver/Options.td =================================================================== --- clang/include/clang/Driver/Options.td +++ clang/include/clang/Driver/Options.td @@ -4630,6 +4630,8 @@ AliasArgs<["no-sign-compare"]>; def _SLASH_wd4100 : CLFlag<"wd4100">, Alias<W_Joined>, AliasArgs<["no-unused-parameter"]>; +def _SLASH_wd4101 : CLFlag<"wd4101">, Alias<W_Joined>, + AliasArgs<["no-unused-variable"]>; def _SLASH_wd4910 : CLFlag<"wd4910">, Alias<W_Joined>, AliasArgs<["no-dllexport-explicit-instantiation-decl"]>; def _SLASH_wd4996 : CLFlag<"wd4996">, Alias<W_Joined>,
Index: clang/test/Driver/cl-options.c =================================================================== --- clang/test/Driver/cl-options.c +++ clang/test/Driver/cl-options.c @@ -330,10 +330,11 @@ // CHECK-CHAR8_T_: "-fno-char8_t" // For some warning ids, we can map from MSVC warning to Clang warning. -// RUN: %clang_cl -wd4005 -wd4100 -wd4910 -wd4996 -### -- %s 2>&1 | FileCheck -check-prefix=Wno %s +// RUN: %clang_cl -wd4005 -wd4100 -wd4101 -wd4910 -wd4996 -### -- %s 2>&1 | FileCheck -check-prefix=Wno %s // Wno: "-cc1" // Wno: "-Wno-macro-redefined" // Wno: "-Wno-unused-parameter" +// Wno: "-Wno-unused-variable" // Wno: "-Wno-dllexport-explicit-instantiation-decl" // Wno: "-Wno-deprecated-declarations" Index: clang/include/clang/Driver/Options.td =================================================================== --- clang/include/clang/Driver/Options.td +++ clang/include/clang/Driver/Options.td @@ -4630,6 +4630,8 @@ AliasArgs<["no-sign-compare"]>; def _SLASH_wd4100 : CLFlag<"wd4100">, Alias<W_Joined>, AliasArgs<["no-unused-parameter"]>; +def _SLASH_wd4101 : CLFlag<"wd4101">, Alias<W_Joined>, + AliasArgs<["no-unused-variable"]>; def _SLASH_wd4910 : CLFlag<"wd4910">, Alias<W_Joined>, AliasArgs<["no-dllexport-explicit-instantiation-decl"]>; def _SLASH_wd4996 : CLFlag<"wd4996">, Alias<W_Joined>,
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits