================ @@ -23814,6 +23814,20 @@ TEST_F(FormatTest, FormatsLambdas) { "}", LLVMWithBeforeLambdaBody); + // Make sure we don't put the lambda on a new line when it would be indented + // more than where it would be otherwise. + verifyFormat("if ([]()\n" ---------------- HazardyKnusperkeks wrote:
How does ``` if (false && []() { return true; }()) {} ``` look before and after your patch? https://github.com/llvm/llvm-project/pull/141576 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits