================
@@ -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;
----------------
HazardyKnusperkeks wrote:
I'm dissatisfied with the name, as am I with all the others `Allow...`, allow
suggests in my opinion not, that it is forced by `clang-format` if it fits on a
single line, but that it will not be touched, if it is on a single line and
fits. More like the `Leave` setting we have for some options now.
https://github.com/llvm/llvm-project/pull/151428
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits