================ @@ -22589,9 +22591,23 @@ TEST_F(FormatTest, FormatsLambdas) { verifyFormat("Namespace::Foo::Foo(LongClassName bar,\n" " AnotherLongClassName baz)\n" " : baz{baz}, func{[&] {\n" - " auto qux = bar;\n" - " return aFunkyFunctionCall(qux);\n" - "}} {}", + " auto qux = bar;\n" + " return aFunkyFunctionCall(qux);\n" + " }} {}", + Style); + verifyFormat("void foo() {\n" + " class Foo {\n" + " public:\n" + " Foo()\n" + " : qux{[](int quux) {\n" + " auto tmp = quux;\n" + " return tmp;\n" + " }} {}\n" + "\n" + " private:\n" + " std::function<void(int quux)> qux;\n" + " };\n" + "}\n", ---------------- owenca wrote:
```suggestion "}", ``` https://github.com/llvm/llvm-project/pull/66755 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits