diff options
| author | Daniel Jasper <djasper@google.com> | 2014-08-04 14:51:02 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2014-08-04 14:51:02 +0000 |
| commit | 65df5aa918b4c298a2616303a085044c2cb276dd (patch) | |
| tree | fe8bdaf0339eb0eefcabca092fcf508b3cba3c9b /clang/unittests/Format/FormatTest.cpp | |
| parent | 7ca7df0bf961759befdc1cdde8b658bbe725245e (diff) | |
| download | bcm5719-llvm-65df5aa918b4c298a2616303a085044c2cb276dd.tar.gz bcm5719-llvm-65df5aa918b4c298a2616303a085044c2cb276dd.zip | |
clang-format: Understand parameter pack initialization.
Before:
Constructor(A... a) : a_(X<A> { std::forward<A>(a) }...) {}
After:
Constructor(A... a) : a_(X<A>{std::forward<A>(a)}...) {}
llvm-svn: 214720
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 b175d2a2ecb..8089b3e36ec 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -4580,6 +4580,7 @@ TEST_F(FormatTest, UnderstandsTemplateParameters) { " aaaaaaaaaaaaaaaaaaaaaaaaaaaaa >> aaaaa);", getLLVMStyleWithColumns(60)); verifyFormat("static_assert(is_convertible<A &&, B>::value, \"AAA\");"); + verifyFormat("Constructor(A... a) : a_(X<A>{std::forward<A>(a)}...) {}"); } TEST_F(FormatTest, UnderstandsBinaryOperators) { |

