================ @@ -922,8 +922,23 @@ struct FormatStyle { /// }; /// int f(); /// int f() { return 1; } + /// int foooooooooooooooooooooooooooooooooooooooooooooooo:: + /// baaaaaaaaaaaaaaaaaaaaar(); /// \endcode RTBS_None, + /// Break after return type automatically, while allowing a break after + /// short return types. + /// ``PenaltyReturnTypeOnItsOwnLine`` is taken into account. + /// \code + /// class A { + /// int f() { return 0; }; + /// }; + /// int f(); + /// int f() { return 1; } + /// int + /// foooooooooooooooooooooooooooooooooooooooooooooooo::baaaaaaaaaaaaaaaaaaaaar(); + /// \endcode + RTBS_AllowShortType, /// Always break after the return type. /// \code /// class A { ---------------- HazardyKnusperkeks wrote:
Shouldn't it be added in this block also? https://github.com/llvm/llvm-project/pull/78011 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits