From 0897dbff75369e5d573f1ca9683193bb5e9adfda Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Mon, 18 Mar 2024 02:28:06 +0100 Subject: [PATCH] clang-format: change the indentation of lambdas Instead of indenting lambdas to the start of the lambda, always indent them to the start of the line, which is more consistent and easier to read --- .clang-format | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.clang-format b/.clang-format index 18d3a686e3..aa0bf08667 100644 --- a/.clang-format +++ b/.clang-format @@ -81,3 +81,6 @@ AllowShortLambdasOnASingleLine: Empty # We do not want clang-format to put all arguments on a new line AllowAllArgumentsOnNextLine: false + +# Indent lambdas to the start of the line, not to the start of the lambda +LambdaBodyIndentation: OuterScope