[clang] [clang-format] Add option to omit wrapping for empty records (PR #151970)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 11 07:34:32 PDT 2025
================
@@ -1585,6 +1611,8 @@ struct FormatStyle {
/// \endcode
///
bool SplitEmptyNamespace;
+ /// Wrap empty record (``class``/``struct``/``union``).
+ BraceWrapEmptyRecordStyle WrapEmptyRecord;
----------------
HazardyKnusperkeks wrote:
If you deprecate it and replace it with a new option (the old one still needs to be parsed), or just change the `bool` to an `enum` is up to you. But either way it is possible to not break anybody (except users of `libFormat`, but they are used to that...).
https://github.com/llvm/llvm-project/pull/151970
More information about the cfe-commits
mailing list