Wir*_*nto 3 c code-formatting gnu-indent
使用 GNU indent,当我使用gnustyle 时,我最终会得到这样的源代码:
void
compute_column_indices(u32 size, s32 * ind)
{
...
}
Run Code Online (Sandbox Code Playgroud)
但我不希望返回值 (void) 独占一行。该linux风格做了,但它引入了其他风格方面,我不喜欢。
这就是我想要做的:
void compute_column_indices(u32 size, s32 * ind)
{
...
}
Run Code Online (Sandbox Code Playgroud)
使用什么开关来实现这一点?我盯着手册页,我找不到它。