diff options
| author | Daniel Jasper <djasper@google.com> | 2015-08-24 13:23:37 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2015-08-24 13:23:37 +0000 |
| commit | b86e2727f0540917e1b29afa4377796e7e9ed41b (patch) | |
| tree | 3010b03ac8a99864a68b07171c1ca98354ebdbb1 /clang/unittests/Format | |
| parent | e5197af4507c3cfe5b3af850597b841d7de404e0 (diff) | |
| download | bcm5719-llvm-b86e2727f0540917e1b29afa4377796e7e9ed41b.tar.gz bcm5719-llvm-b86e2727f0540917e1b29afa4377796e7e9ed41b.zip | |
clang-format: Properly handle braced lists in macros.
Before:
#define A \
{ a, a } \
,
After:
#define A {a, a},
llvm-svn: 245837
Diffstat (limited to 'clang/unittests/Format')
| -rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 3f1dc59d933..0f4e46436b4 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -6144,6 +6144,7 @@ TEST_F(FormatTest, LayoutCxx11BraceInitializers) { " void f() { int i{2}; }\n" " };\n" "};"); + verifyFormat("#define A {a, a},"); // In combination with BinPackArguments = false. FormatStyle NoBinPacking = getLLVMStyle(); |

