Skip to content

Commit

Permalink
Update clang-format.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Jan 19, 2024
1 parent 4ddbcf5 commit e9eba6b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/clang-format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

if which clang-format >/dev/null; then
find cpp ios android/src/main/cpp -type f \( -name "*.h" -o -name "*.cpp" -o -name "*.m" -o -name "*.mm" \) -print0 | while read -d $'\0' file; do
if [[ $file == *".framework"* ]]; then
# Ignore iOS TensorFlow base library
continue
fi
if [[ $file == *"/lib/"* ]]; then
# Ignore Android TensorFlow base library
continue
fi
echo "-> cpp-lint $file"
clang-format -i "$file"
done
Expand Down

0 comments on commit e9eba6b

Please sign in to comment.