Skip to content

Commit

Permalink
Updated prettyprint.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Vlad Gheorghiu <vsoftco@gmail.com>
vsoftco committed May 1, 2024
1 parent b8af3b6 commit 908c893
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
@@ -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 908c893

Please sign in to comment.