[llvm-bugs] [Bug 25792] New: clang-format shits the bed if it sees paretheses

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Dec 9 13:58:07 PST 2015


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

            Bug ID: 25792
           Summary: clang-format shits the bed if it sees paretheses
           Product: tools
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: opt
          Assignee: unassignedbugs at nondot.org
          Reporter: william.morriss at snapchat.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Apologies; there is no clang-format component under tools in bugzilla. I looked
under tools because that's where it is in the git repo.

clang-format attempts the following change, which is wrong because it removes
the space before fromDate.

-    [calendar components:(NSYearCalendarUnit | NSMonthCalendarUnit |
NSDayCalendarUnit) fromDate:earliestDate];
+    [calendar components:(NSYearCalendarUnit | NSMonthCalendarUnit |
NSDayCalendarUnit)fromDate:earliestDate];

-- 
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/20151209/310224e9/attachment.html>


More information about the llvm-bugs mailing list