提交 7e1b707d 编写于 作者: 朔-望's avatar 朔-望

add clang-format clang-tidy hook

上级 47e5978f
......@@ -20,7 +20,6 @@ SOFTWARE.
#include "executor.h"
#include "lod_tensor.h"
#include "operators/conv_op.h"
#include "variable.h"
namespace paddle_mobile {
namespace framework {
......
#!/bin/bash
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
python ./tools/pre-commit.hooks/run-clang-tidy.py -header-filter=third-party/
TOTAL_ERRORS=0
# The trick to remove deleted files: https://stackoverflow.com/a/2413151
for file in $(git diff --cached --name-status | awk '$1 != "D" {print $2}' | grep -v "third-party/" | grep -v ".pb."); do
python ./tools/pre-commit.hooks/run-clang-tidy.py $file -header-filter=third-party/;
TOTAL_ERRORS=$(expr $TOTAL_ERRORS + $?);
done
exit $TOTAL_ERRORS
#python ./tools/pre-commit.hooks/run-clang-tidy.py -header-filter=third-party/
#TOTAL_ERRORS=0
# The trick to remove deleted files: https://stackoverflow.com/a/2413151
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册