ki.stfu created this revision. ki.stfu added a reviewer: rsmith. Herald added subscribers: cfe-commits, dang. Herald added a project: clang. ki.stfu requested review of this revision.
>From here >https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warnings-c4800-through-c4999: > operator 'operator-name': deprecated between enumerations of different types Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D87368 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,12 +330,13 @@ // 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 -wd4910 -wd4996 -wd5054 -### -- %s 2>&1 | FileCheck -check-prefix=Wno %s // Wno: "-cc1" // Wno: "-Wno-macro-redefined" // Wno: "-Wno-unused-parameter" // Wno: "-Wno-dllexport-explicit-instantiation-decl" // Wno: "-Wno-deprecated-declarations" +// Wno: "-Wno-deprecated-anon-enum-enum-conversion" // Ignored options. Check that we don't get "unused during compilation" errors. // RUN: %clang_cl /c \ Index: clang/include/clang/Driver/Options.td =================================================================== --- clang/include/clang/Driver/Options.td +++ clang/include/clang/Driver/Options.td @@ -4634,6 +4634,8 @@ AliasArgs<["no-dllexport-explicit-instantiation-decl"]>; def _SLASH_wd4996 : CLFlag<"wd4996">, Alias<W_Joined>, AliasArgs<["no-deprecated-declarations"]>; +def _SLASH_wd5054 : CLFlag<"wd5054">, Alias<W_Joined>, + AliasArgs<["no-deprecated-anon-enum-enum-conversion"]>; def _SLASH_vd : CLJoined<"vd">, HelpText<"Control vtordisp placement">, Alias<vtordisp_mode_EQ>; def _SLASH_X : CLFlag<"X">,
Index: clang/test/Driver/cl-options.c =================================================================== --- clang/test/Driver/cl-options.c +++ clang/test/Driver/cl-options.c @@ -330,12 +330,13 @@ // 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 -wd4910 -wd4996 -wd5054 -### -- %s 2>&1 | FileCheck -check-prefix=Wno %s // Wno: "-cc1" // Wno: "-Wno-macro-redefined" // Wno: "-Wno-unused-parameter" // Wno: "-Wno-dllexport-explicit-instantiation-decl" // Wno: "-Wno-deprecated-declarations" +// Wno: "-Wno-deprecated-anon-enum-enum-conversion" // Ignored options. Check that we don't get "unused during compilation" errors. // RUN: %clang_cl /c \ Index: clang/include/clang/Driver/Options.td =================================================================== --- clang/include/clang/Driver/Options.td +++ clang/include/clang/Driver/Options.td @@ -4634,6 +4634,8 @@ AliasArgs<["no-dllexport-explicit-instantiation-decl"]>; def _SLASH_wd4996 : CLFlag<"wd4996">, Alias<W_Joined>, AliasArgs<["no-deprecated-declarations"]>; +def _SLASH_wd5054 : CLFlag<"wd5054">, Alias<W_Joined>, + AliasArgs<["no-deprecated-anon-enum-enum-conversion"]>; def _SLASH_vd : CLJoined<"vd">, HelpText<"Control vtordisp placement">, Alias<vtordisp_mode_EQ>; def _SLASH_X : CLFlag<"X">,
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits