[LLVMbugs] [Bug 21200] New: clang-format single-line enums
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Oct 7 18:09:40 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=21200
Bug ID: 21200
Summary: clang-format single-line enums
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: curmudgeon at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Using clang-format 3.6 (svn218873), a single line enum
enum Foo {FooA, FooB, FooC};
is always converted to multiple lines,
enum Foo
{
FooA,
FooB,
FooC
};
if ColumnLimit=0. In order to keep the single line format, ColumnLimit has to
be set to something large (and BreakBeforeBraces needs to be something other
than GNU or Allman).
I would expect the single line to be preserved when ColumnLimit=0 -- perhaps
always, but at least when BreakBeforeBraces is something other than GNU or
Allman.
If the latter, it would be useful to have an option to enable one-line enums
regardless of the value of BreakBeforeBraces (in the same way that
AllowShortXXXOnASingleLine allows for one-line functions etc. even with Allman
and GNU brace placement).
--
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/20141008/6cf34e0e/attachment.html>
More information about the llvm-bugs
mailing list