gpt4 book ai didi

c - Gnu 在单独的行上缩进函数调用参数

转载 作者:太空宇宙 更新时间:2023-11-04 04:55:48 25 4
gpt4 key购买 nike

我在 gnu 缩进中找不到任何选项:

result = some_function(prm1,
prm2,
prm3);

或者像这样:

result = some_function(
prm1,
prm2,
prm3);

gnu 缩进有可能吗?谢谢。

最佳答案

来自 indent 手册页:

          p1 = first_procedure (second_procedure (p2, p3),
third_procedure (p4, p5));

With `-lp´ in effect the code looks somewhat clearer:

p1 = first_procedure (second_procedure (p2, p3),
third_procedure (p4, p5));

When a statement is broken in between two or more paren pairs (...), each extra pair causes the indentation level extra indentation:

        if ((((i < 2 &&
k > 0) || p == 0) &&
q == 1) ||
n = 0)

The option `-ipN´ can be used to set the extra offset per paren.
For instance, `-ip0´ would format the above as:

if ((((i < 2 &&
k > 0) || p == 0) &&
q == 1) ||
n = 0)

关于c - Gnu 在单独的行上缩进函数调用参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8367934/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com