[llvm-bugs] [Bug 39157] New: clang-format version 8 2018-08-24 broke line breaking after method declaration

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Oct 2 13:55:29 PDT 2018


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

            Bug ID: 39157
           Summary: clang-format version 8 2018-08-24 broke line breaking
                    after method declaration
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: david at dzhang.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

clang-format version 7.0.0 (tags/google/stable/2018-04-24) with
BreakBeforeBraces: Linux produces:

- (void)foo

{
...
}

clang-format version 8.0.0 (tags/google/stable/2018-08-24) produces:

- (void)foo {
...
}

It seems that there is no combination of config options in version 8 that will
produce the previous behavior.

This is pretty bad because it is a regression that prevents clang-format from
being auto-applied to existing code.

-- 
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/20181002/4e7d1f3e/attachment.html>


More information about the llvm-bugs mailing list