5 Star 6 Fork 1

Gitee 极速下载/Cuberite

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/cuberite/cuberite
克隆/下载
clang-tidy.sh 851 Bytes
一键复制 编辑 原始数据 按行查看 历史
x12xx12x 提交于 2023-06-05 22:37 . Update clang-tidy.sh (#5477)
#!/bin/sh
set -e
LOCALSTRING="local"
if [ "$3" = "$LOCALSTRING" ]; then
REGEX="/cuberite/src/\.?[^\.]"
else
REGEX="cuberite_[^/\.]+/src/\.?[^\.]"
fi
FIXES_FILE="tidy-fixes.yaml"
ARGS="-header-filter $REGEX -quiet -export-fixes $FIXES_FILE $* $REGEX"
# Generate the compilation database
mkdir -p tidy-build
cd tidy-build
# Disable precompiled headers since they aren't generated during linting which causes an error
# Disable unity builds since clang-tidy needs the full list of compiled files to check each one
cmake --target Cuberite -DCMAKE_EXPORT_COMPILE_COMMANDS=Yes -DPRECOMPILE_HEADERS=No -DUNITY_BUILDS=No ..
# Ensure LuaState_Typedefs.inc has been generated
(cd ../src/Bindings && lua BindingsProcessor.lua)
if run-clang-tidy $ARGS; then
echo "clang-tidy: No violations found"
else
echo "clang-tidy: Found violations"
exit 1
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/Cuberite.git
git@gitee.com:mirrors/Cuberite.git
mirrors
Cuberite
Cuberite
master

搜索帮助