Skip to content

Commit

Permalink
fix clang-format checker
Browse files Browse the repository at this point in the history
  • Loading branch information
lfreist committed Jun 22, 2023
1 parent b453dae commit 51e0f9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code_style_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ done < sourcelist

ERROR=0
for source in "${SOURCE_FILES[@]}"; do
clang-format-14 -output-replacements-xml "$source" | grep "<replacement " &> /dev/null
clang-format -output-replacements-xml "$source" | grep "<replacement " &> /dev/null
HAS_WRONG_FILES=$?
if [ $HAS_WRONG_FILES -ne 1 ]; then
printf "Checking %s: \x1b[31mFAILED!\x1b[m\n" "$source"
Expand All @@ -24,6 +24,6 @@ rm sourcelist
if [ $ERROR -eq 0 ]; then
printf "\x1b[32mCongratulations! All sources match the code style\x1b[m\n"
else
printf "\x1b[31mclang-format-14 discovered style issues in at least one file.\x1b[m\n"
printf "\x1b[31mclang-format discovered style issues in at least one file.\x1b[m\n"
exit 1
fi

0 comments on commit 51e0f9b

Please sign in to comment.