Skip to content

Commit

Permalink
clang_format_check.sh: skip vcpkg submodule and vcpkg_installed
Browse files Browse the repository at this point in the history
  • Loading branch information
Be-ing committed Mar 9, 2022
1 parent 12c4aa2 commit 5314485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang_format_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function clang_format_files() {
if ! git check-ignore -q "$file"; then
clang-format --dry-run -Werror "$file"
fi
done < <(find "$DIR" -type f -name "$1" -a -not -path './.git/*' -print0)
done < <(find "$DIR" -type f -name "$1" -a -not -path "$DIR/.git/*" -not -path "$DIR/vcpkg/*" -not -path "$DIR/*/vcpkg_installed/*" -print0)
}

clang_format_files "*.cpp"
Expand Down

0 comments on commit 5314485

Please sign in to comment.