================ @@ -22858,6 +22858,36 @@ TEST_F(FormatTest, FormatsLambdas) { " //\n" " });"); + FormatStyle LLVMStyle = getLLVMStyleWithColumns(60); + + verifyFormat("int main() {\n" + " very_long_function_name_yes_it_is_really_long(\n" + " [](auto n)\n" + " -> std::unordered_map<very_long_type_name_A,\n" + " very_long_type_name_B> {\n" + " really_do_something();\n" + " });\n" + "}", + LLVMStyle); + verifyFormat("int main() {\n" + " very_long_function_name_yes_it_is_really_long(\n" + " [](auto n) noexcept\n" + " -> std::unordered_map<very_long_type_name_A,\n" + " very_long_type_name_B> {\n" + " really_do_something();\n" + " });\n" + "}", + LLVMStyle); ---------------- c8ef wrote:
Fixed. https://github.com/llvm/llvm-project/pull/94560 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits