Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove references to legacy directory from format script
Browse files Browse the repository at this point in the history
Matt Woodward committed Feb 15, 2024
1 parent 0210057 commit a7a528a
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
@@ -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

0 comments on commit a7a528a

Please sign in to comment.