Ai
3 Star 11 Fork 3

Gitee 极速下载/sdrplusplus

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/AlexandreRouma/SDRPlusPlus
克隆/下载
run_clang_format.sh 1.12 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
TOTAL_LINES=0
FILE_COUNT=0
echo Searching directories...
CODE_FILES=$(find . -iregex '.*\.\(h\|hpp\|c\|cpp\)$')
while read -r CPP_FILE_PATH; do
# Skip unwanted files
if [[ "$CPP_FILE_PATH" == "./.old"* ]]; then continue; fi
if [[ "$CPP_FILE_PATH" == "./build"* ]]; then continue; fi
if [[ "$CPP_FILE_PATH" == "./core/libcorrect"* ]]; then continue; fi
if [[ "$CPP_FILE_PATH" == "./core/std_replacement"* ]]; then continue; fi
if [[ "$CPP_FILE_PATH" == "./core/src/imgui"* ]]; then continue; fi
if [[ "$CPP_FILE_PATH" == "./misc_modules/discord_integration/discord-rpc"* ]]; then continue; fi
if [[ "$CPP_FILE_PATH" == "./source_modules/sddc_source/src/libsddc"* ]]; then continue; fi
if [ "$CPP_FILE_PATH" = ./core/src/json.hpp ]; then continue; fi
if [ "$CPP_FILE_PATH" = ./core/src/gui/file_dialogs.h ]; then continue; fi
echo Formatting $CPP_FILE_PATH
clang-format --style=file -i $CPP_FILE_PATH
TOTAL_LINES=$(( $TOTAL_LINES + $(wc -l < "$CPP_FILE_PATH") ))
FILE_COUNT=$(( $FILE_COUNT + 1 ))
done <<< "$CODE_FILES"
echo Lines: $TOTAL_LINES
echo File Count: $FILE_COUNT
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/mirrors/sdrplusplus.git
git@gitee.com:mirrors/sdrplusplus.git
mirrors
sdrplusplus
sdrplusplus
master

搜索帮助