mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 10:59:32 +08:00
fda8d62b38
Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
17 lines
439 B
Bash
Executable File
17 lines
439 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 "/thirdparty" | grep -v "\.pb\." | xargs clang-format-10 -i
|
|
}
|
|
|
|
formatThis "${CorePath}/src"
|
|
formatThis "${CorePath}/unittest"
|
|
|
|
${CorePath}/build-support/add_license.sh ${CorePath}/build-support/cpp_license.txt ${CorePath}
|