[llvm-bugs] [Bug 38686] New: add AfterCaseLabel to BraceWrapping

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 24 03:52:59 PDT 2018


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

            Bug ID: 38686
           Summary: add AfterCaseLabel to BraceWrapping
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: owenpiano at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

Add a nested configuration flag AfterCaseLabel to BraceWrapping. This would
allow the following coding style:

        switch (value) {
                case 1:
                {
                        int i = 0;
                        break;
                }
        }

with the following settings:

BreakBeforeBraces: Custom
BraceWrapping:
        AfterControlStatement: false
        AfterCaseLabel: true

-- 
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/20180824/50aaa3a2/attachment-0001.html>


More information about the llvm-bugs mailing list