From 097632bccd8d47dd4565770a88c36613a0423491 Mon Sep 17 00:00:00 2001 From: Alex Zhu Date: Fri, 14 Apr 2023 16:17:13 +0800 Subject: [PATCH] [Enhancement] Exclude be/src/thirdparty from clang-format (#21622) Signed-off-by: sduzh --- build-support/clang-format.sh | 4 +++- build-support/excludes | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 build-support/excludes diff --git a/build-support/clang-format.sh b/build-support/clang-format.sh index cc44d49645a..f6f8983b5b6 100755 --- a/build-support/clang-format.sh +++ b/build-support/clang-format.sh @@ -30,6 +30,8 @@ export STARROCKS_HOME=`cd "${ROOT}/.."; pwd` CLANG_FORMAT=${CLANG_FORMAT_BINARY:=$(which clang-format)} -python3 ${STARROCKS_HOME}/build-support/run_clang_format.py --clang_format_binary="${CLANG_FORMAT}" --fix --source_dirs="${STARROCKS_HOME}/be/src","${STARROCKS_HOME}/be/test" +python3 ${STARROCKS_HOME}/build-support/run_clang_format.py --clang_format_binary="${CLANG_FORMAT}" --fix \ + --source_dirs="${STARROCKS_HOME}/be/src","${STARROCKS_HOME}/be/test" \ + --exclude_globs="${STARROCKS_HOME}/build-support/excludes" diff --git a/build-support/excludes b/build-support/excludes new file mode 100644 index 00000000000..ad06e500de4 --- /dev/null +++ b/build-support/excludes @@ -0,0 +1 @@ +*/be/src/thirdparty/*