Files
ncnn/codeformat.sh
T
Cai Shanli bf845a6fe3 add python (#2514)
* add python
* check elempack when convert ncnn.Mat to numpy.ndarray
fix build with NCNN_STRING=OFF
2020-12-30 10:40:27 +08:00

10 lines
706 B
Bash
Executable File

#!/usr/bin/env bash
# we run clang-format and astyle twice to get stable format output
find src/ tools/ tests/ examples/ benchmark/ python/ -type f -name '*.c' -o -name '*.cpp' -o -name '*.cc' -o -name '*.h' | xargs -i clang-format -i {}
astyle -n -r "benchmark/*.h,*.cpp,*.cc" "src/*.h,*.cpp,*.cc" "tests/*.h,*.cpp,*.cc" "tools/*.h,*.cpp,*.cc" "examples/*.h,*.cpp,*.cc" "python/*.h,*.cpp,*.cc"
find src/ tools/ tests/ examples/ benchmark/ python/ -type f -name '*.c' -o -name '*.cpp' -o -name '*.cc' -o -name '*.h' | xargs -i clang-format -i {}
astyle -n -r "benchmark/*.h,*.cpp,*.cc" "src/*.h,*.cpp,*.cc" "tests/*.h,*.cpp,*.cc" "tools/*.h,*.cpp,*.cc" "examples/*.h,*.cpp,*.cc" "python/*.h,*.cpp,*.cc"