r183366 - clang/unittests/Format/FormatTest.cpp: Suppress utf8 literals with _MSC_VER. MS cl.exe is unaware of BOM-less utf8 source files.

NAKAMURA Takumi geek4civic at gmail.com
Wed Jun 5 18:14:58 PDT 2013


Author: chapuni
Date: Wed Jun  5 20:14:58 2013
New Revision: 183366

URL: http://llvm.org/viewvc/llvm-project?rev=183366&view=rev
Log:
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.

Modified:
    cfe/trunk/unittests/Format/FormatTest.cpp

Modified: cfe/trunk/unittests/Format/FormatTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Format/FormatTest.cpp?rev=183366&r1=183365&r2=183366&view=diff
==============================================================================
--- cfe/trunk/unittests/Format/FormatTest.cpp (original)
+++ cfe/trunk/unittests/Format/FormatTest.cpp Wed Jun  5 20:14:58 2013
@@ -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, SplitsUTF8BlockCommen
             format("/* 𝓣𝓮𝓼𝓽 𝔣𝔬𝔲𝔯 𝕓𝕪𝕥𝕖 𝖀𝕿𝕱-𝟠 */", getLLVMStyleWithColumns(12)));
 }
 
+#endif
+
 } // end namespace tooling
 } // end namespace clang





More information about the cfe-commits mailing list