diff options
| author | Daniel Jasper <djasper@google.com> | 2014-05-07 07:59:03 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2014-05-07 07:59:03 +0000 |
| commit | 7a2d60e32850a69b0d9f5d7324f99a6c94cf9721 (patch) | |
| tree | ed5ac26884f0d5e3b2a992a8f54a359c3fe78b27 /clang/unittests/Format/FormatTest.cpp | |
| parent | 3819f028190dfaa51a7a819b42be0bb508437504 (diff) | |
| download | bcm5719-llvm-7a2d60e32850a69b0d9f5d7324f99a6c94cf9721.tar.gz bcm5719-llvm-7a2d60e32850a69b0d9f5d7324f99a6c94cf9721.zip | |
clang-format: Fix bad space before braced initializer.
Before:
new int {1};
After:
new int{1};
llvm-svn: 208168
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
| -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 aad0cb19fb2..bd7e23f60b8 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -5093,6 +5093,7 @@ TEST_F(FormatTest, LayoutCxx11BraceInitializers) { verifyFormat("Class::Class : member{1, 2, 3} {}"); verifyFormat("new vector<int>{1, 2, 3};"); verifyFormat("new int[3]{1, 2, 3};"); + verifyFormat("new int{1};"); verifyFormat("return {arg1, arg2};"); verifyFormat("return {arg1, SomeType{parameter}};"); verifyFormat("int count = set<int>{f(), g(), h()}.size();"); |

