[Enhancement] Exclude be/src/thirdparty from clang-format (#21622)

Signed-off-by: sduzh <zhuming9011@qq.com>
This commit is contained in:
Alex Zhu 2023-04-14 16:17:13 +08:00 committed by GitHub
parent 1b56492eb0
commit 097632bccd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -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"

1
build-support/excludes Normal file
View File

@ -0,0 +1 @@
*/be/src/thirdparty/*