Files
comaps/tools/unix/clang-format.sh
Konstantin Pastbin 9f0290c0ec [ios] Disable clang-format temporary
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2025-08-17 14:28:44 +07:00

19 lines
546 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
echo "Running clang-format on all repository files..."
XARGS_COMMAND='xargs -n1 -0 -P0 clang-format -i'
# Android
find android/{app,sdk}/src -type f -name '*.java' -print0 | $XARGS_COMMAND
find android/sdk/src/main/cpp -type f -name '*.[hc]pp' -print0 | $XARGS_COMMAND
# TODO: iOS
# find iphone -type f -name '*.[hc]pp' -o -name '*.[hm]' -o -name '*.mm' -print0 | $XARGS_COMMAND
# Core/C++
find dev_sandbox generator libs qt tools -type f -name '*.[hc]pp' -print0 | $XARGS_COMMAND
git diff --exit-code