[llvm-bugs] [Bug 30530] New: clang-format gets pretty confused by emojis in string literals

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Sep 26 13:37:58 PDT 2016


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: unassignedclangbugs at nondot.org
          Reporter: nicolasweber at gmx.de
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org
    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 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160926/7f6a342d/attachment.html>


More information about the llvm-bugs mailing list