Skip to content

Commit

Permalink
Fix format scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram committed Sep 17, 2018
1 parent 454506a commit ac4244c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion format-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ fi
filelist=`git ls-files --full-name | awk '/src/' | awk '!/extern/' | grep '^src' | grep -E '*\.(cpp|h)'`

for f in $filelist; do
echo "${f}"
clang-format -i -style=file "${f}"
done

Expand Down
2 changes: 1 addition & 1 deletion format.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
find "src" \( -name '*.h' -or -name '*.cpp' \) -print0 | xargs -0 "clang-format" -i -style=file

filelist=`git ls-files | awk '!/extern/' | grep 'src/*' | grep -E '*\.(cpp|h)'`
filelist=`git ls-files --full-name | awk '/src/' | awk '!/extern/' | grep '^src' | grep -E '*\.(cpp|h)'`

for f in $filelist; do
echo "${f}"
Expand Down

0 comments on commit ac4244c

Please sign in to comment.