clang-format configurator - 交互式创建 clang-format 格式配置文件
clang-format configurator
https://zed0.co.uk/clang-format-configurator/
clang-format-configurator
https://github.com/zed0/clang-format-configurator
Interactively create a clang-format configuration while watching how the changes affect your code.
以交互方式创建 clang 格式配置,同时观察更改如何影响你的代码。
1. clang-format configurator
2. Clang-Format Style Options
https://clang.llvm.org/docs/ClangFormatStyleOptions.html
Clang-Format Style Options describes configurable formatting style options supported by LibFormat and ClangFormat.
2.1. AlignEscapedNewlines (EscapedNewlineAlignmentStyle)
Options for aligning backslashes in escaped newlines.
在转义换行符中对齐反斜杠的选项。
Possible values:
ENAS_DontAlign
(in configuration: DontAlign
) Don’t align escaped newlines.
不要对齐转义的换行符。
#define A \
int aaaa; \
int b; \
int dddddddddd;
ENAS_Left
(in configuration: Left
) Align escaped newlines as far left as possible.
尽可能向左对齐转义的换行符。
true:
#define A \
int aaaa; \
int b; \
int dddddddddd;
false:
ENAS_Right
(in configuration: Right
) Align escaped newlines in the right-most column.
在最右边的列中对齐转义的换行符。
#define A \
int aaaa; \
int b; \
int dddddddddd;
References
https://yongqiang.blog.csdn.net/