C++ indenter: Add special case rule for indenting enums.

So you now get
enum A { a = 2,
         b = 3,
       };
This commit is contained in:
Christian Kamm
2010-07-06 13:54:21 +02:00
parent 8dbbf9be92
commit bf7613d2e7
2 changed files with 12 additions and 3 deletions

View File

@@ -602,6 +602,10 @@ void tst_CodeFormatter::braceList()
<< Line(" a,")
<< Line(" b,")
<< Line("};")
<< Line("enum Foo { a = 2,")
<< Line(" a = 3,")
<< Line(" b = 4")
<< Line(" };")
<< Line("void foo () {")
<< Line(" int[] a = { foo, bar, ")
<< Line(" car };")