diff options
| author | Daniel Jasper <djasper@google.com> | 2014-06-02 10:17:32 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2014-06-02 10:17:32 +0000 |
| commit | e18ff37e08f5c03944a6ec4105e4e6cc21ce0a3a (patch) | |
| tree | f5ad25ec45e8079bb1635a95bfb10cf5fc1f82e5 /clang/unittests/Format/FormatTest.cpp | |
| parent | e3f907fdedc365fdd4dd2382db5873aa73601c1f (diff) | |
| download | bcm5719-llvm-e18ff37e08f5c03944a6ec4105e4e6cc21ce0a3a.tar.gz bcm5719-llvm-e18ff37e08f5c03944a6ec4105e4e6cc21ce0a3a.zip | |
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
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
| -rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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" |

