[llvm-bugs] [Bug 51640] New: [clang-format] New AfterEnum brace wrapping changes have cause C# behaviour to change

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 27 00:28:46 PDT 2021


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

            Bug ID: 51640
           Summary: [clang-format] New AfterEnum brace wrapping changes
                    have cause C# behaviour to change
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: mydeveloperday at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

in 13.0 and 14.0 AfterEnum brace wrapping is now different in how Enums are
modified (when they have an access modifier)

Enumerators with access modifiers don't follow the BraceWrapping rules

---
Language: CSharp
AllowShortBlocksOnASingleLine: false
AllowShortEnumsOnASingleLine: false
BreakBeforeBraces: Custom
BraceWrapping:
    AfterEnum: true


enum A
{
  A,
  B
}

internal enum A {
  A,
  B
}

public enum A {
  A,
  B
}

-- 
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/20210827/30e67bbb/attachment.html>


More information about the llvm-bugs mailing list