[PATCH] UTF-8 support for clang-format.
Dmitri Gribenko
gribozavr at gmail.com
Tue Jun 4 23:21:48 PDT 2013
================
Comment at: unittests/Format/FormatTest.cpp:4890-4891
@@ +4889,4 @@
+ getLLVMStyleWithColumns(35));
+ verifyFormat("\"一 二 三 四 五 六 七 八 九 十\"",
+ getLLVMStyleWithColumns(21));
+ verifyFormat("// Однажды в студёную зимнюю пору...",
----------------
OK, if we decide to count codepoints for now, please adjust the string length then -- it is currently computed as if a double-width character actually occupies 2 columns (but the code being tested counts it as one).
http://llvm-reviews.chandlerc.com/D918
More information about the cfe-commits
mailing list