mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 02:48:45 +08:00
e9f3df3626
issue: https://github.com/milvus-io/milvus/issues/29654 --------- Signed-off-by: longjiquan <jiquan.long@zilliz.com>
20 lines
636 B
Bash
Executable File
20 lines
636 B
Bash
Executable File
if [ -z $1 ]; then
|
|
echo "usage: $0 <path_to_core>"
|
|
exit -1
|
|
else
|
|
echo start formating
|
|
fi
|
|
CorePath=$1
|
|
|
|
formatThis() {
|
|
find "$1" | grep -E "(*\.cpp|*\.h|*\.cc)$" | grep -v "gen_tools/templates" | grep -v "\.pb\." | grep -v "tantivy-binding.h" | xargs clang-format-10 -i
|
|
}
|
|
|
|
formatThis "${CorePath}/src"
|
|
formatThis "${CorePath}/unittest"
|
|
formatThis "${CorePath}/unittest/bench"
|
|
formatThis "${CorePath}/thirdparty/tantivy"
|
|
|
|
${CorePath}/build-support/add_cpp_license.sh ${CorePath}/build-support/cpp_license.txt ${CorePath}
|
|
${CorePath}/build-support/add_cmake_license.sh ${CorePath}/build-support/cmake_license.txt ${CorePath}
|