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

            Bug ID: 50460
           Summary: extern with new line brace without indentation
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangb...@nondot.org
          Reporter: nn1436...@gmail.com
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@lists.llvm.org

Seems like after fixing https://bugs.llvm.org/show_bug.cgi?id=33083 there is no
option to have the old formatting:

extern "C"
{
void f();
}


All permutations doesn't give the expected result.

1.
BreakBeforeBraces: Custom

BraceWrapping:
  AfterExternBlock: true

IndentExternBlock: AfterExternBlock

Result:
extern "C"
{
    void f() {}
}

2.
BreakBeforeBraces: Custom

BraceWrapping:
  AfterExternBlock: false

IndentExternBlock: AfterExternBlock

Result:
extern "C" {
void f() {}
}

3.
BreakBeforeBraces: Custom

BraceWrapping:
  AfterExternBlock: true

IndentExternBlock: NoIndent

Result:
extern "C" {
void f() {}
}


4.
BreakBeforeBraces: Custom

BraceWrapping:
  AfterExternBlock: true

IndentExternBlock: Indent

Result:
extern "C" {
    void f() {}
}

-- 
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