运行时:
$ clang-format -style=Google -dump-config > .clang-format
Run Code Online (Sandbox Code Playgroud)
该文件附加了省略号 ( ...)。
TabWidth: 8
UseTab: Never
...
Run Code Online (Sandbox Code Playgroud)
有什么意义吗?我可以删除它吗?有人问这在代码审查中意味着什么。
https://clang.llvm.org/docs/ClangFormatStyleOptions.html说:
\n\n\n\n\n.clang-format 文件使用 YAML 格式
\n
http://www.yaml.org/refcard.html说:
\n\n\n\n\n\'...\':文档终止符。
\n
更多内容来自http://yaml.org/spec/1.2/spec.html:
\n\n\n\nYAML 使用三个破折号 (\xe2\x80\x9c---\xe2\x80\x9d) 将指令与文档内容分开。如果不存在指令,这也可以表示文档的开始。三个点 (\xe2\x80\x9c...\xe2\x80\x9d) 表示文档的结尾,而不开始新的文档,用于通信通道。
\n
| 归档时间: |
|
| 查看次数: |
1214 次 |
| 最近记录: |