Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 426 Bytes

File metadata and controls

23 lines (18 loc) · 426 Bytes

clang-format

clang-format 配置文件,带一个批量格式化项目代码的脚本。

  • 将 .clang-format 和 ClangFormat.py 都放在项目主目录

OSX安装 clang-format

brew install clang-format
Ubuntu安装 clang-format
sudo apt install clang-format

配置

运行 ClangFormat.py

python ClangFormat.py

格式化完成。

VSCode直接使用配置文件