mirror of
https://github.com/Tencent/ncnn.git
synced 2026-10-17 04:41:47 +08:00
bf845a6fe3
* add python * check elempack when convert ncnn.Mat to numpy.ndarray fix build with NCNN_STRING=OFF
10 lines
706 B
Bash
Executable File
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"
|