[clang] [clang-format] Add BreakParametersAfter formatting option (PR #181281)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 14 13:43:09 PDT 2026
================
@@ -1223,37 +1204,6 @@ struct FormatStyle {
/// \version 21
bool BinPackLongBracedList;
- /// Different way to try to fit all parameters on a line.
- enum BinPackParametersStyle : int8_t {
- /// Bin-pack parameters.
- /// \code
- /// void f(int a, int bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb,
- /// int ccccccccccccccccccccccccccccccccccccccccccc);
- /// \endcode
- BPPS_BinPack,
- /// Put all parameters on the current line if they fit.
- /// Otherwise, put each one on its own line.
- /// \code
- /// void f(int a, int b, int c);
- ///
- /// void f(int a,
- /// int b,
- /// int ccccccccccccccccccccccccccccccccccccc);
- /// \endcode
- BPPS_OnePerLine,
- /// Always put each parameter on its own line.
- /// \code
- /// void f(int a,
- /// int b,
- /// int c);
- /// \endcode
- BPPS_AlwaysOnePerLine,
- };
-
- /// The bin pack parameters style to use.
- /// \version 3.7
- BinPackParametersStyle BinPackParameters;
----------------
HazardyKnusperkeks wrote:
Do not completely remove it, there are examples on how to handle deprecated options.
https://github.com/llvm/llvm-project/pull/181281
More information about the cfe-commits
mailing list