[clang] [clang-format] Add AlignAfterOpenBracketOptions (PR #108332)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Thu May 1 00:02:19 PDT 2025
================
@@ -62,6 +62,22 @@ struct FormatStyle {
/// \version 3.3
int AccessModifierOffset;
+ /// Different styles for breaking the parenthesis after a control statement
+ /// (``if/switch/while/for ...``).
+ /// \version 21
+ enum BreakAfterControlStatementStyle : int8_t {
+ /// Use the default behavior.
+ BACSS_Default,
+ /// Force break after the left parenthesis of a control statement only
+ /// when the expression exceeds the column limit, and align on the
+ /// ``ContinuationIndentWidth``.
+ BACSS_MultiLine,
+ /// Do not force a break after the control statment.
+ BACSS_No,
----------------
owenca wrote:
Code examples?
https://github.com/llvm/llvm-project/pull/108332
More information about the cfe-commits
mailing list