================ @@ -878,6 +878,12 @@ struct FormatStyle { /// \version 3.5 ShortFunctionStyle AllowShortFunctionsOnASingleLine; + /// Dependent on the value, function body like ``{ return 0; }`` can be + /// put on a single line. Only when AllowShortFunctionsOnASingleLine = None + /// and AllowShortBlocksOnASingleLine != Never, the value of this option + /// is true. + bool AllowShortFunctionBodiesOnASingleLine; ---------------- brandb97 wrote:
I am not thinking of adding an global option, I will move it to the private area. https://github.com/llvm/llvm-project/pull/151428 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits