This commit is contained in:
2025-07-21 20:55:20 -04:00
parent 26790f3f91
commit 4cad0dfab7
10 changed files with 2022 additions and 245 deletions

11
tools/Cleanup Normal file → Executable file
View File

@@ -2,8 +2,15 @@
# Usage: ./Cleanup [FILE]...
make dist-clean
lint_file() {
cppcheck --enable=all --quiet "$1"
local output
output=$(clang-tidy "$1" 2>&1 | grep -v -E 'Error while trying to load a compilation database|No compilation database found|fixed-compilation-database:|json-compilation-database:|Running without flags.')
if [[ -n "$output" ]]; then
echo "[LINT] $1:"
echo "$output"
fi
}
whitespace_cleanup() {
@@ -33,4 +40,4 @@ else
for file in $(find yait core -type f \( -name "*.c" -o -name "*.h" \)); do
process_file "$file"
done
fi
fi