[llvm-bugs] [Bug 34448] New: Add braced list formatting options
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Sep 4 00:46:50 PDT 2017
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: unassignedclangbugs at nondot.org
Reporter: victor.collod at gmail.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170904/56fe615f/attachment.html>
More information about the llvm-bugs
mailing list