[clang] [clang-format] Add options to control wrapped lambda brace indent. (PR #143249)

via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 7 23:53:39 PDT 2025


================
@@ -1547,6 +1547,38 @@ struct FormatStyle {
     bool BeforeWhile;
     /// Indent the wrapped braces themselves.
     bool IndentBraces;
+    /// Indent nested wrapped lambda braces.
----------------
rmarker wrote:

When it is inside some form of brackets.
>From the documentation in `FormatToken.h`.

```cpp
/// The nesting level of this token, i.e. the number of surrounding (),
/// [], {} or <>.
unsigned NestingLevel = 0;
```

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


More information about the cfe-commits mailing list