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: unassignedclangb...@nondot.org
          Reporter: matthias.schae...@versasec.com
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to