]> granicus.if.org Git - clang/commitdiff
clang-cl: Accept MSVC2015's '/utf-8' flag.
authorNico Weber <nicolasweber@gmx.de>
Fri, 26 Aug 2016 21:26:29 +0000 (21:26 +0000)
committerNico Weber <nicolasweber@gmx.de>
Fri, 26 Aug 2016 21:26:29 +0000 (21:26 +0000)
Clang always behaves as if that's passed, so just ignore the flag.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@279869 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Driver/CLCompatOptions.td
test/Driver/cl-options.c

index 2728829a05ccd608968c0e66ab5aefcc7d0b63c6..fab12be830926416e4dbca8268149ed93802b071 100644 (file)
@@ -304,6 +304,7 @@ def _SLASH_openmp_ : CLIgnoredFlag<"openmp-">;
 def _SLASH_RTC : CLIgnoredJoined<"RTC">;
 def _SLASH_sdl : CLIgnoredFlag<"sdl">;
 def _SLASH_sdl_ : CLIgnoredFlag<"sdl-">;
+def _SLASH_utf8 : CLIgnoredFlag<"utf-8">;
 def _SLASH_w : CLIgnoredJoined<"w">;
 def _SLASH_Zc_auto : CLIgnoredFlag<"Zc:auto">;
 def _SLASH_Zc_forScope : CLIgnoredFlag<"Zc:forScope">;
index 52b40c716daed1eafb5f8ae1ee190f4ae3affe60..ba70378b2f219be78e1714c50ff95ba95f4c88f7 100644 (file)
 // RUN:    /sdl \
 // RUN:    /sdl- \
 // RUN:    /source-charset:utf-8 \
+// RUN:    /utf-8 \
 // RUN:    /vmg \
 // RUN:    /volatile:iso \
 // RUN:    /w12345 \