【发布时间】:2020-08-10 18:54:23
【问题描述】:
是否将-style=LLVM 或-style=file 作为默认值?
这是该命令的一个示例,我想知道它的行为如何:
clang-format-4.0 -i path/to/file/to/format.cpp
【问题讨论】:
标签: formatting clang llvm-clang clang-format
是否将-style=LLVM 或-style=file 作为默认值?
这是该命令的一个示例,我想知道它的行为如何:
clang-format-4.0 -i path/to/file/to/format.cpp
【问题讨论】:
标签: formatting clang llvm-clang clang-format
如果未指定-style,则默认为-style=file。如果找不到.clang-format 文件,则默认行为与-style=LLVM 相同。不幸的是,documentation 没有指定这一点。
【讨论】: