From e18ff37e08f5c03944a6ec4105e4e6cc21ce0a3a Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Mon, 2 Jun 2014 10:17:32 +0000 Subject: clang-format: Fix Allman brace breaking of enums. Before: enum Side { LEFT, RIGHT }; After: enum Side { LEFT, RIGHT }; This fixes llvm.org/PR19911. llvm-svn: 210011 --- clang/unittests/Format/FormatTest.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'clang/unittests/Format/FormatTest.cpp') diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 9a91b9ef047..19abd37c33c 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -7679,6 +7679,11 @@ TEST_F(FormatTest, AllmanBraceBreaking) { " Y = 0,\n" "}\n", BreakBeforeBrace); + verifyFormat("enum X\n" + "{\n" + " Y = 0\n" + "}\n", + BreakBeforeBrace); verifyFormat("@interface BSApplicationController ()\n" "{\n" -- cgit v1.2.3