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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to