Skip to content

Commit

Permalink
Remove references to legacy directory from format script
Browse files Browse the repository at this point in the history
  • Loading branch information
woodfell committed Mar 3, 2024
1 parent 2a1c3d9 commit e4bac70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c/scripts/clang-format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set -e -x
GENERATED_HEADERS=$(grep -rl --include="*.h" "Automatically generated" include/libsbp/* src/)
GENERATED_C_SOURCES=$(grep -rl --include="*.c" "Automatically generated" src/)
CLANG_FORMAT=clang-format-6.0
$CLANG_FORMAT -i $GENERATED_HEADERS $GENERATED_C_SOURCES test/*.c test/*.h test/legacy/cpp/*.cc test/legacy/*.c test/auto* test/cpp/auto*
$CLANG_FORMAT -i $GENERATED_HEADERS $GENERATED_C_SOURCES test/*.c test/*.h test/auto* test/cpp/auto*

# clang-format-6 adds whitespace to blank lines inside comments
sed -i.bak 's/^ *$//' $GENERATED_HEADERS
Expand Down

0 comments on commit e4bac70

Please sign in to comment.