Clang-format clang-format是常用的格式化C++代码工具,支持多种代码规范(Google Code Style/LLVM等等),并且常用的开发工具(CLion/VS/VS Code)上均可配置 相关阅读 Clang 16.0.0git documentation