mirror of
https://github.com/Tencent/ncnn.git
synced 2026-10-19 14:32:15 +08:00
49f3e1ea09
* drawing api * add drawing test * yuv420sp drawing * enable simpleocv in webassembly build
14 lines
1018 B
Bash
Executable File
14 lines
1018 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' | grep -v python/pybind11 | grep -v stb_image | xargs -i clang-format -i {}
|
|
astyle -n -r "benchmark/*.h,*.cpp,*.cc" "tests/*.h,*.cpp,*.cc" "tools/*.h,*.cpp,*.cc" "examples/*.h,*.cpp,*.cc"
|
|
astyle -n -r "src/*.h,*.cpp,*.cc" --exclude=src/stb_image.h --exclude=src/stb_image_write.h
|
|
astyle -n -r "python/*.h,*.cpp,*.cc" --exclude=python/pybind11
|
|
|
|
find src/ tools/ tests/ examples/ benchmark/ python/ -type f -name '*.c' -o -name '*.cpp' -o -name '*.cc' -o -name '*.h' | grep -v python/pybind11 | grep -v stb_image | xargs -i clang-format -i {}
|
|
astyle -n -r "benchmark/*.h,*.cpp,*.cc" "tests/*.h,*.cpp,*.cc" "tools/*.h,*.cpp,*.cc" "examples/*.h,*.cpp,*.cc"
|
|
astyle -n -r "src/*.h,*.cpp,*.cc" --exclude=src/stb_image.h --exclude=src/stb_image_write.h
|
|
astyle -n -r "python/*.h,*.cpp,*.cc" --exclude=python/pybind11
|