From da18fd86c7a3a648e845c850bbcb4a534e2292ea Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Tue, 10 Jun 2014 06:39:03 +0000 Subject: clang-format: Support variadic lambda captures. Before: return [ i, args... ]{}; After: return [i, args...] {}; llvm-svn: 210514 --- clang/unittests/Format/FormatTest.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clang/unittests/Format/FormatTest.cpp') diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 584ecba9866..02636a70160 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -8709,6 +8709,9 @@ TEST_F(FormatTest, FormatsLambdas) { " return j;\n" " });"); + // More complex introducers. + verifyFormat("return [i, args...] {};"); + // Not lambdas. verifyFormat("constexpr char hello[]{\"hello\"};"); verifyFormat("double &operator[](int i) { return 0; }\n" -- cgit v1.2.3