Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mazurel committed Nov 11, 2024
1 parent e7a4deb commit 163a3be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reformat-all.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/sh

ALL_FORMATABLE_FILES=$(find src include tests example -name '*.cpp' -o -name '*.hpp')
CLANG_FORMAT_ARGS="-i -style=file --verbose"
CLANG_FORMAT_ARGS="-style=file --verbose"

echo "*** Modbus Clang Format Wrapper **"
clang-format --version

if [[ "$DRY" = "TRUE" ]]; then
exec clang-format --dry-run $CLANG_FORMAT_ARGS $ALL_FORMATABLE_FILES
else
exec clang-format $CLANG_FORMAT_ARGS $ALL_FORMATABLE_FILES
exec clang-format -i $CLANG_FORMAT_ARGS $ALL_FORMATABLE_FILES
fi

0 comments on commit 163a3be

Please sign in to comment.