[clang] [clang-format] Add BreakAfterOpenBracket* and BreakBeforeCloseBracket* (PR #108332)
Gedare Bloom via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 25 09:56:06 PDT 2025
================
@@ -76,26 +127,16 @@ struct FormatStyle {
/// argument2);
/// \endcode
BAS_DontAlign,
- /// Always break after an open bracket, if the parameters don't fit
- /// on a single line, e.g.:
- /// \code
- /// someLongFunction(
- /// argument1, argument2);
- /// \endcode
+ /// This is **deprecated**. See ``BreakAfterOpenBracketBracedList``,
+ /// ``BreakAfterOpenBracketFunction``, ``BreakAfterOpenBracketIf``,
+ /// ``BreakAfterOpenBracketLoop``, ``BreakAfterOpenBracketSwitch``.
BAS_AlwaysBreak,
----------------
gedare wrote:
I have deprecated and removed the 4 sub-options `Align`, `DontAlign`, `AlwaysBreak`, and `BlockIndent` in favor of using only `true` and `false`.
https://github.com/llvm/llvm-project/pull/108332
More information about the cfe-commits
mailing list