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

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -