clang-format: Fix parsing and indenting lambdas.
Before:
void f() {
other(x.begin(), x.end(), //
[&](int, int) { return 1; });
}
After:
void f() {
other(x.begin(), x.end(), //
[&](int, int) { return 1; });
}
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190039 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp
index 3dfcd74..5e5a579 100644
--- a/unittests/Format/FormatTest.cpp
+++ b/unittests/Format/FormatTest.cpp
@@ -6295,12 +6295,10 @@
verifyFormat("void f() {\n"
" other(x.begin(), x.end(), [&](int, int) { return 1; });\n"
"}\n");
- // FIXME: The formatting is incorrect; this test currently checks that
- // parsing of the unwrapped lines doesn't regress.
verifyFormat("void f() {\n"
" other(x.begin(), //\n"
" x.end(), //\n"
- " [&](int, int) { return 1; });\n"
+ " [&](int, int) { return 1; });\n"
"}\n");
}