[llvm-bugs] [Bug 25455] New: Casts in array initializers sometimes have trailing spaces, but sometimes don't

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Nov 9 05:15:23 PST 2015


https://llvm.org/bugs/show_bug.cgi?id=25455

            Bug ID: 25455
           Summary: Casts in array initializers sometimes have trailing
                    spaces, but sometimes don't
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ed at 80386.nl
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org
    Classification: Unclassified

Consider the following definition of the tzname array (part of <time.h>):

char *tzname[2] = {(char *)"UTC", (char *)"UTC"};

If I pull this statement through clang-format SVN revision 252153, I get:

char *tzname[2] = {(char *)"UTC", (char *) "UTC"};

Notice that there is no space between the cast and the string literal the first
element in the initializer, whereas the second element does contain one.

-- 
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/20151109/18715139/attachment.html>


More information about the llvm-bugs mailing list