[clang] [clang-format] add option to control bin-packing keyworded parameters (PR #131605)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 30 21:08:20 PDT 2025


owenca wrote:

> The Q_PROPERTY declaration is almost like a function declaration, but uses keywords as parameter separators. This allows users to provide list of those keywords to be used to control bin-packing of the macro parameters.

According to the Qt [`documentation`](https://doc.qt.io/qt-6/properties.html#requirements-for-declaring-properties), `Q_PROPERTY` "behaves like a class data member". IMO, a boolean option, e.g. `AllowBreakBeforeQPropertyKeyword` should suffice.

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


More information about the cfe-commits mailing list