[LLVMbugs] [Bug 19511] New: clang-format Allman style BreakBeforeBraces fails to break after Objective-C @interface

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Apr 22 12:23:06 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19511

            Bug ID: 19511
           Summary: clang-format Allman style BreakBeforeBraces fails to
                    break after Objective-C @interface
           Product: new-bugs
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: sean at rogue-research.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Basically, clang-format (svn trunk r206916, i.e. today) transforms this:

------------
@interface BSApplicationController ()
{
@private
    id _extraIvar;
}
@end
------------

into this:

------------
@interface BSApplicationController () {
@private
    id _extraIvar;
}
@end
------------

Note the '{' has been moved despite me specifying Allman style for the
BreakBeforeBraces option.

-- 
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/20140422/2c86711c/attachment.html>


More information about the llvm-bugs mailing list