Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
Signed-off-by: Vlad Gheorghiu <[email protected]>
  • Loading branch information
vsoftco committed May 1, 2024
1 parent be5cfa6 commit 8a399dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions prettyprint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ else
echo "Error: $CLANG_FORMAT executable not found." >&2
exit 1
fi
echo "Code formatting with '$CLANG_FORMAT' the folders:"
echo "Code formatting with '$CLANG_FORMAT' the directories:"
fi

for folder in "$@"; do
echo "$folder"
find "$folder" \( -iname '*.cpp' -o -iname '*.c' -o -iname '*.h' \
for directory in "$@"; do
echo "$directory"
find "$directory" \( -iname '*.cpp' -o -iname '*.c' -o -iname '*.h' \
-o -iname '*.hpp' \) -exec "$CLANG_FORMAT" -style=file -i {} +
done

0 comments on commit 8a399dc

Please sign in to comment.