同步操作将从 Gitee 极速下载/obs-studio 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/usr/bin/env bash# Original source https://github.com/Project-OSRM/osrm-backend/blob/master/scripts/format.shset +xset -o errexitset -o pipefailset -o nounset# Runs the Clang Formatter in parallel on the code base.# Return codes:# - 1 there are files to be formatted# - 0 everything looks fine# Get CPU countOS=$(uname)NPROC=1if [[ $OS = "Linux" || $OS = "Darwin" ]] ; thenNPROC=$(getconf _NPROCESSORS_ONLN)fi# Discover clang-formatif type clang-format-10 2> /dev/null ; thenCLANG_FORMAT=clang-format-10elif type clang-format-8 2> /dev/null ; thenCLANG_FORMAT=clang-format-8elseCLANG_FORMAT=clang-formatfifind . -type d \( -path ./deps \-o -path ./cmake \-o -path ./plugins/decklink/win/decklink-sdk \-o -path ./plugins/decklink/mac/decklink-sdk \-o -path ./plugins/decklink/linux/decklink-sdk \-o -path ./plugins/enc-amf \-o -path ./plugins/mac-syphon/syphon-framework \-o -path ./plugins/obs-outputs/ftl-sdk \-o -path ./plugins/obs-vst \-o -path ./build \) -prune -type f -o -name '*.h' -or -name '*.hpp' -or -name '*.m' -or -name '*.mm' -or -name '*.c' -or -name '*.cpp' \| xargs -L100 -P${NPROC} ${CLANG_FORMAT} -i -style=file -fallback-style=none
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。