【问题标题】:What is the default behavior of clang-format being called without -style=file option?在没有 -style=file 选项的情况下调用 clang-format 的默认行为是什么?
【发布时间】: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


    【解决方案1】:

    如果未指定-style,则默认为-style=file。如果找不到.clang-format 文件,则默认行为与-style=LLVM 相同。不幸的是,documentation 没有指定这一点。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-08-05
      • 1970-01-01
      • 1970-01-01
      • 2012-08-09
      • 1970-01-01
      • 2015-05-11
      • 1970-01-01
      相关资源
      最近更新 更多