Index: include/clang/Driver/CLCompatOptions.td =================================================================== --- include/clang/Driver/CLCompatOptions.td +++ include/clang/Driver/CLCompatOptions.td @@ -127,6 +127,12 @@ def _SLASH_w_flag : CLFlag<"w">, HelpText<"Disable all warnings">, Alias; def _SLASH_wd4005 : CLFlag<"wd4005">, Alias, AliasArgs<["no-macro-redefined"]>; +def _SLASH_wd4244 : CLFlag<"wd4244">, Alias, + AliasArgs<["no-float-conversion"]>, + HelpText<"Disable narrowing conversion warnings">; +def _SLASH_wd4267 : CLFlag<"wd4267">, Alias, + AliasArgs<["no-shorten-64-to-32"]>, + HelpText<"Disable 64-bit to 32-bit conversion warnings">; def _SLASH_vd : CLJoined<"vd">, HelpText<"Control vtordisp placement">, Alias; def _SLASH_Z7 : CLFlag<"Z7">, Alias; Index: test/Driver/cl-options.c =================================================================== --- test/Driver/cl-options.c +++ test/Driver/cl-options.c @@ -167,6 +167,12 @@ // RUN: %clang_cl -wd4005 -### -- %s 2>&1 | FileCheck -check-prefix=wd4005 %s // wd4005: "-cc1" // wd4005: "-Wno-macro-redefined" +// RUN: %clang_cl -wd4244 -### -- %s 2>&1 | FileCheck -check-prefix=wd4244 %s +// wd4244: "-cc1" +// wd4244: "-Wno-float-conversion" +// RUN: %clang_cl -wd4267 -### -- %s 2>&1 | FileCheck -check-prefix=wd4267 %s +// wd4267: "-cc1" +// wd4267: "-Wno-shorten-64-to-32" // Ignored options. Check that we don't get "unused during compilation" errors. // (/Zs is for syntax-only)