https://llvm.org/bugs/show_bug.cgi?id=30530
Bug ID: 30530
Summary: clang-format gets pretty confused by emojis in string
literals
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
We have various tests in blink that test processing of emojis (or other non-BMP
unicode chars). Here's one of the tests as processed by clang-format, compared
to the same test with each emoji replaced with an ansi char:
thakis@thakis:~/src/chrome/src$ cat test.cc
TEST_F(SymbolsIteratorTest, AllEmojiZWSSequences)
{
CHECK_RUNS({ { "abcdefghijklmnopqrstuvwxyzabcdefghij"
"klmnopqrstuvxyzabcdefghijklmnopqrstuvwxyzabcdefghilklmnopqrstuvwx"
"yzabcdefghijklmnopqrstuvwxyzabcdef",
FontFallbackPriority::EmojiEmoji } });
}
TEST_F(SymbolsIteratorTest, AllEmojiZWSSequences)
{
CHECK_RUNS({ { "
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs