Description
Bugzilla Link | 40121 |
Version | trunk |
OS | Linux |
Reporter | LLVM Bugzilla Contributor |
Extended Description
For function declarations there is AllowAllParametersOfDeclarationOnNextLine which can be set to false to produce this style together with BinPackParameters=false:
std::string function_with_a_very_long_name(int and_,
int several_,
int short_,
int arguments_);
std::string function2_with_a_very_long_name(
int and_,
int some_,
int short_,
int arguments_,
int and_a_quite_long_argument_as_well_);
However there is no corresponding boolean to avoid packing all arguments on one line in a function call, i.e. to get this style together with BinPackArguments=false:
void f() {
function_with_a_very_long_name(and_,
several_,
short_,
arguments_);
function2_with_a_very_long_name(
and_,
some_,
short_,
arguments_,
and_a_quite_long_argument_as_well_);
}
This style is used at least in the Android Runtime project (https://android.googlesource.com/platform/art/+/master), which is the reason for this feature request.
Thanks!