c++ - clang-format: how to prevent all function arguments on next line? -


i have c++ function call i've manually , intentionally formatted this:

dosomethingforapurposethatcausesalongfunctionname(     arg_0,     arg_1,     arg_2); 

clang-format wants re-format this:

dosomethingforapurposethatcausesalongfunctionname(     arg_0, arg_1, arg_2) 

i not want this. allowallparametersofdeclarationonnextline appears control behavior function declarations, function calls? there corresponding setting?

my .clang-format looks this:

basedonstyle: google binpackarguments: false binpackparameters: false allowallparametersofdeclarationonnextline: false alignafteropenbracket: alwaysbreak 

i think need

allowallparametersofdeclarationonnextline: true 

it works me unless first argument on same line function call, in case puts them on same line.

i have

experimentalautodetectbinpacking: false 

which may have effect?

i'm using version 3.8.0.


Comments

Popular posts from this blog

Lists in Python -

android - can not access to progress bar in an other activity -

java - Vaadin 7 Pass Data Between Views -