如何使用 uncrustify 缩进连续的函数参数?
how to indent continued function parameters with uncrustify?
考虑这段代码:
some_function(1, 2
3);
some_function(
1, 2, 3);
有没有办法让 uncrustify 缩进第二行,使 3
在 (
之后的列中?最好不改变第四行的缩进?
文档听起来 indent_func_call_param = false
应该有预期的效果,但我已经尝试了 true
和 false
都没有效果。 (是的,use_indent_func_call_param
是 true
。)
我正在使用 Uncrustify-0.67-54-21651401...
根据 CDanU 的评论,答案是:不要设置 indent_continue
。
考虑这段代码:
some_function(1, 2
3);
some_function(
1, 2, 3);
有没有办法让 uncrustify 缩进第二行,使 3
在 (
之后的列中?最好不改变第四行的缩进?
文档听起来 indent_func_call_param = false
应该有预期的效果,但我已经尝试了 true
和 false
都没有效果。 (是的,use_indent_func_call_param
是 true
。)
我正在使用 Uncrustify-0.67-54-21651401...
根据 CDanU 的评论,答案是:不要设置 indent_continue
。