clang-format
命令手册Tool to auto-format C/C++/Java/JavaScript/Objective-C/Protobuf/C# code. More information: https://clang.llvm.org/docs/ClangFormat.html.
stdout
:clang-format {{path/to/file}}
clang-format -i {{path/to/file}}
clang-format --style={{LLVM|Google|Chromium|Mozilla|WebKit}} {{path/to/file}}
.clang-format
file in one of the parent directories of the source file:clang-format --style=file {{path/to/file}}
.clang-format
file:clang-format --style={{LLVM|Google|Chromium|Mozilla|WebKit}} --dump-config > {{.clang-format}}