[clang] [clang-format] fix incorrectly indents lambda trailing return (PR #94560)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 6 12:29:05 PDT 2024


================
@@ -22858,6 +22858,31 @@ TEST_F(FormatTest, FormatsLambdas) {
       "      //\n"
       "    });");
 
+  verifyFormat("int main() {\n"
----------------
HazardyKnusperkeks wrote:

Get yourself a style with a lower column limit `auto Style = getLLVMStyleWithColumnLimit(40);` and use that, so that the lines don't have to be wrapped here, that's easier to read.

https://github.com/llvm/llvm-project/pull/94560


More information about the cfe-commits mailing list