[llvm-bugs] [Bug 42155] New: Clang-format Does Not Break Before Brace of Union with Setting BreakBeforeBraces: AllMan

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jun 6 05:14:53 PDT 2019


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

            Bug ID: 42155
           Summary: Clang-format Does Not Break Before Brace of Union with
                    Setting BreakBeforeBraces: AllMan
           Product: clang
           Version: 8.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: matthias.schaefer at versasec.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

.clang-format file:
Language: Cpp
BreakBeforeBraces: Allman

After running clang-format the code is formatted as follows:
union foo {
};

According to my understanding of Allman, stating "Always break before braces",
it should be:
union foo
{
};

-- 
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/20190606/8428984c/attachment.html>


More information about the llvm-bugs mailing list