[clang] [clang-format] Fix AllowShortLambdasOnASingleLine interfering with lambda brace wrapping. (PR #81848)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 16 01:52:39 PST 2024
================
@@ -22893,6 +22893,19 @@ TEST_F(FormatTest, FormatsLambdas) {
LLVMWithBeforeLambdaBody);
verifyFormat("FctWithTwoParams_SLS_All([]() { return 43; }, 87);",
LLVMWithBeforeLambdaBody);
+ verifyFormat(
+ "FctWithTwoParams_SLS_All(\n"
+ " 87, []() { return LongLineThatWillForceBothParamsToNewLine(); });\n",
----------------
owenca wrote:
```suggestion
" 87, []() { return LongLineThatWillForceBothParamsToNewLine(); });",
```
https://github.com/llvm/llvm-project/pull/81848
More information about the cfe-commits
mailing list