指令:--style=java --indent=force-tab-x=4 --attach-namespaces --attach-classes --attach-inlines --attach-extern-c --attach-closing-while --indent-classes --indent-switches --indent-namespaces --indent-continuation=0 --indent-labels --indent-preproc-define --unpad-paren --delete-empty-lines --align-pointer=type --break-closing-braces --break-elseifs --break-one-line-headers --remove-braces --attach-return-type --remove-comment-prefix --lineend=linux。
空格:
- 必要行内分隔;
- 说明符
operator后; - 非行末分号(常见于
if,switch,for语句中)后; new[]及delete[]后的处理方式同new及delete。
特殊情况:
- 不利用返回值的逗号运算符缩进时视为分号运算符。