Hi hansw,

http://reviews.llvm.org/D6041

Files:
  include/clang/Driver/CLCompatOptions.td
  test/Driver/cl-options.c
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<w>;
 def _SLASH_wd4005 : CLFlag<"wd4005">, Alias<W_Joined>,
   AliasArgs<["no-macro-redefined"]>;
+def _SLASH_wd4244 : CLFlag<"wd4244">, Alias<W_Joined>,
+  AliasArgs<["no-float-conversion"]>,
+  HelpText<"Disable narrowing conversion warnings">;
+def _SLASH_wd4267 : CLFlag<"wd4267">, Alias<W_Joined>,
+  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<vtordisp_mode_EQ>;
 def _SLASH_Z7 : CLFlag<"Z7">, Alias<gline_tables_only>;
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)
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to