[llvm-bugs] [Bug 31909] New: formatter doesn't correctly count length of Unicode codepoints
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Feb 8 18:54:01 PST 2017
https://llvm.org/bugs/show_bug.cgi?id=31909
Bug ID: 31909
Summary: formatter doesn't correctly count length of Unicode
codepoints
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: dcheng at google.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
Classification: Unclassified
It looks like column count is based strictly on byte count, which means that
attempts to line up code on different rows fails when things like U+2026 are
involved.
Input:
#define MACRO() \
int test; \
// This is my test comment in a macro… This is my test comment in a macro…
\
// This is my test comment in a macro. This is my test comment in a macro.
Output:
#define MACRO() \
int test; \
// This is my test comment in a macro… This is my test comment in a macro… \
// This is my test comment in a macro. This is my test comment in a macro.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170209/c7e96a90/attachment-0001.html>
More information about the llvm-bugs
mailing list