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

            Bug ID: 34448
           Summary: Add braced list formatting options
           Product: clang
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangb...@nondot.org
          Reporter: victor.col...@gmail.com
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@lists.llvm.org

Currently, braced list initializers are formatted on a single line when short
enought, and using K&R style braces when longer.

Unfortunately, there do not seem to be any configurable way to change this
behavior. It would be really nice to be able to configure the braced list
style, in order to comply with some strict coding styles. This would also make
easier migrating from astyle, which enforces the same braced lists style as
code blocks in most contexts.

I've actually been trying very hard to implement a quick and dirty patch
enforcing Allman braces, but miserably failed to do so. If anybody has a clue
about how to implement this, tell me so that I can give it a shot !

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to