.clang-format 末尾的省略号是什么意思?
What does ellipsis at end of .clang-format mean?
当运行:
$ clang-format -style=Google -dump-config > .clang-format
文件后附有省略号 (...
)。
TabWidth: 8
UseTab: Never
...
有什么意义吗?我可以删除它吗?有人在问code review 是什么意思
https://clang.llvm.org/docs/ClangFormatStyleOptions.html 说:
The .clang-format file uses YAML format
http://www.yaml.org/refcard.html 说:
'...': Document terminator.
来自 http://yaml.org/spec/1.2/spec.html 的更多内容:
YAML uses three dashes (“---”) to separate directives from document
content. This also serves to signal the start of a document if no
directives are present. Three dots ( “...”) indicate the end of a
document without starting a new one, for use in communication
channels.
当运行:
$ clang-format -style=Google -dump-config > .clang-format
文件后附有省略号 (...
)。
TabWidth: 8
UseTab: Never
...
有什么意义吗?我可以删除它吗?有人在问code review 是什么意思
https://clang.llvm.org/docs/ClangFormatStyleOptions.html 说:
The .clang-format file uses YAML format
http://www.yaml.org/refcard.html 说:
'...': Document terminator.
来自 http://yaml.org/spec/1.2/spec.html 的更多内容:
YAML uses three dashes (“---”) to separate directives from document content. This also serves to signal the start of a document if no directives are present. Three dots ( “...”) indicate the end of a document without starting a new one, for use in communication channels.