From: Nico Weber Date: Fri, 26 Aug 2016 21:26:29 +0000 (+0000) Subject: clang-cl: Accept MSVC2015's '/utf-8' flag. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b5f10f253e876c7055d860a7fa891143c926096e;p=clang clang-cl: Accept MSVC2015's '/utf-8' flag. 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 --- diff --git a/include/clang/Driver/CLCompatOptions.td b/include/clang/Driver/CLCompatOptions.td index 2728829a05..fab12be830 100644 --- a/include/clang/Driver/CLCompatOptions.td +++ b/include/clang/Driver/CLCompatOptions.td @@ -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">; diff --git a/test/Driver/cl-options.c b/test/Driver/cl-options.c index 52b40c716d..ba70378b2f 100644 --- a/test/Driver/cl-options.c +++ b/test/Driver/cl-options.c @@ -307,6 +307,7 @@ // RUN: /sdl \ // RUN: /sdl- \ // RUN: /source-charset:utf-8 \ +// RUN: /utf-8 \ // RUN: /vmg \ // RUN: /volatile:iso \ // RUN: /w12345 \