是否将 -style=LLVM
或 -style=file
作为默认值?
这是该命令的示例,我想知道它的行为如何:
clang-format-4.0 -i path/to/file/to/format.cpp
最佳答案
如果未指定-style
,则默认为-style=file
。如果找不到 .clang-format
文件,则默认行为与 -style=LLVM
相同。不幸的是,documentation没有指定这一点。
关于formatting - 在没有 -style=file 选项的情况下调用 clang-format 的默认行为是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61455148/