Skip to content

Commit

Permalink
use clang-format-12 only
Browse files Browse the repository at this point in the history
Signed-off-by: Ted Xu <[email protected]>
  • Loading branch information
tedxu committed Dec 18, 2024
1 parent e73ae81 commit 6aaac06
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions internal/core/run_clang_format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ else
fi
CorePath=$1

if command -v clang-format-12 &>/dev/null; then
CLANG_FORMAT=clang-format-12
else
CLANG_FORMAT=clang-format
fi
CLANG_FORMAT=clang-format-12

formatThis() {
find "$1" | grep "(\.cpp\|\.h\|\.cc)$" | grep -v "gen_tools/templates" | grep -v "\.pb\." | grep -v "tantivy-binding.h" | xargs $CLANG_FORMAT -i
Expand Down

0 comments on commit 6aaac06

Please sign in to comment.