89 Star 649 Fork 172

GVPan-tao / drogon

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
format.sh 574 Bytes
一键复制 编辑 原始数据 按行查看 历史
Ken Matsui 提交于 2024-01-29 17:57 . Use clang-format-17 (#1931)
#!/usr/bin/env bash
# You can customize the clang-format path by setting the CLANG_FORMAT environment variable
CLANG_FORMAT=${CLANG_FORMAT:-clang-format}
# Check if clang-format version is 17 to avoid inconsistent formatting
$CLANG_FORMAT --version
if [[ ! $($CLANG_FORMAT --version) =~ "version 17" ]]; then
echo "Error: clang-format version must be 17"
exit 1
fi
find lib orm_lib nosql_lib examples drogon_ctl -name *.h -o -name *.cc -exec dos2unix {} \;
find lib orm_lib nosql_lib examples drogon_ctl -name *.h -o -name *.cc|xargs $CLANG_FORMAT -i -style=file
C++
1
https://gitee.com/an-tao/drogon.git
git@gitee.com:an-tao/drogon.git
an-tao
drogon
drogon
master

搜索帮助