Files
luban-lite-t3e-pro/packages/third-party/awtk-ui/awtk/docs/code_style.md

18 lines
583 B
Markdown
Raw Normal View History

2025-09-30 11:56:06 +08:00
# Code Style
每个人都有自己喜欢的代码风格AWTK 采用的代码风格不可能让所有人喜欢,所以 AWTK 提供了一个配置文件。clang-format借助 clang-format 工具可以瞬间将 AWTK 的代码风格变成你喜欢的代码风格。
具体做法如下:
## 安装 clang-format 工具
请参考http://releases.llvm.org/download.html#7.0.0
## 修改 .clang-format
请参考http://clang.llvm.org/docs/index.html
## 更新
> 支持 bash 的平台运行。/format.sh 即可。Windows 平台可以在 git bash 里运行。