From: NAKAMURA Takumi Date: Thu, 6 Jun 2013 01:14:58 +0000 (+0000) Subject: clang/unittests/Format/FormatTest.cpp: Suppress utf8 literals with _MSC_VER. MS cl... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=07eda943366b889e52d6db31302c5c0992ccbd43;p=clang clang/unittests/Format/FormatTest.cpp: Suppress utf8 literals with _MSC_VER. MS cl.exe is unaware of BOM-less utf8 source files. FIXME: Encode Cyrillic and CJK characters below to appease MS compilers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183366 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index eb9b8f36a0..84e22cbbef 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -4884,6 +4884,9 @@ TEST_F(FormatTest, WorksFor8bitEncodings) { getLLVMStyleWithColumns(12))); } +// FIXME: Encode Cyrillic and CJK characters below to appease MS compilers. +#if !defined(_MSC_VER) + TEST_F(FormatTest, CountsUTF8CharactersProperly) { verifyFormat("\"Однажды в студёную зимнюю пору...\"", getLLVMStyleWithColumns(35)); @@ -4952,5 +4955,7 @@ TEST_F(FormatTest, SplitsUTF8BlockComments) { format("/* 𝓣𝓮𝓼𝓽 𝔣𝔬𝔲𝔯 𝕓𝕪𝕥𝕖 𝖀𝕿𝕱-𝟠 */", getLLVMStyleWithColumns(12))); } +#endif + } // end namespace tooling } // end namespace clang