Skip to content

Commit 097632b

Browse files
authored
[Enhancement] Exclude be/src/thirdparty from clang-format (StarRocks#21622)
Signed-off-by: sduzh <[email protected]>
1 parent 1b56492 commit 097632b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

build-support/clang-format.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ export STARROCKS_HOME=`cd "${ROOT}/.."; pwd`
3030

3131
CLANG_FORMAT=${CLANG_FORMAT_BINARY:=$(which clang-format)}
3232

33-
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"
33+
python3 ${STARROCKS_HOME}/build-support/run_clang_format.py --clang_format_binary="${CLANG_FORMAT}" --fix \
34+
--source_dirs="${STARROCKS_HOME}/be/src","${STARROCKS_HOME}/be/test" \
35+
--exclude_globs="${STARROCKS_HOME}/build-support/excludes"
3436

3537

build-support/excludes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*/be/src/thirdparty/*

0 commit comments

Comments
 (0)