From 2218664b818803b2007e58db7fbdab7de8f169b2 Mon Sep 17 00:00:00 2001 From: Be Date: Tue, 8 Mar 2022 01:20:47 -0600 Subject: [PATCH] clang_format_check.sh: skip vcpkg submodule and vcpkg_installed --- clang_format_check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang_format_check.sh b/clang_format_check.sh index 55dcb8d57..08853fd63 100755 --- a/clang_format_check.sh +++ b/clang_format_check.sh @@ -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"