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

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 9 22:53:05 PDT 2025


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

If we allow this new option, I want a separate NFC patch that upgrades the `IndentBraces` sub-option to an `enum` or a `struct` first. See e.g. #140497.

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


More information about the cfe-commits mailing list