clang-format tool usage
clang-format tools cheat sheet, this tool aim at
- keep code style consistent
- auto check and format code
docs
https://clang.llvm.org/docs/ClangFormat.html
download
1 | # mac |
usage
1 | # generate style file .clang-format, style can be [gnu, llvm, google, Mozilla, WebKit] |
clang-format tool usage
https://love1angel.github.io/2022/08/20/languages/cpp/tools/clang-format/