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/*