From b88cb8cdc0b7a8af4df22e303ff81e0e617dbc85 Mon Sep 17 00:00:00 2001 From: icogn <21243684+icogn@users.noreply.github.com> Date: Thu, 14 Oct 2021 17:01:58 -0500 Subject: [PATCH] Update clang-format-check.sh and make executable (#156) * Update clang-format-check.sh and make executable * Make executable Co-authored-by: Isaac --- tools/clang-format-check.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) mode change 100644 => 100755 tools/clang-format-check.sh diff --git a/tools/clang-format-check.sh b/tools/clang-format-check.sh old mode 100644 new mode 100755 index 52f09a1332c..e6279d268d3 --- a/tools/clang-format-check.sh +++ b/tools/clang-format-check.sh @@ -4,11 +4,8 @@ clangFormatTargets=$(find . -type f -regex '.*\.\(cpp\|hpp\|h\|cc\|cxx\)') for inputFile in $clangFormatTargets do - clang-format-10 -style=file $inputFile > $inputFile-formatted - diff $inputFile $inputFile-formatted + clang-format-10 --dry-run --Werror -style=file $inputFile if [ $? != 0 ] ; then exit 1 - else - rm $inputFile-formatted fi done