1
0
mirror of https://github.com/upx/upx.git synced 2025-08-11 22:52:30 +08:00

misc: update clang-format files

This commit is contained in:
Markus F.X.J. Oberhumer
2022-08-27 17:20:10 +02:00
parent 45e6e73d85
commit e87fc60391
2 changed files with 9 additions and 5 deletions

View File

@ -2,11 +2,13 @@
## vim:set ts=4 sw=4 et:
set -e; set -o pipefail
# "Gofmt's style is nobody's favourite, but gofmt is everybody's favourite." Rob Pike
# "Gofmt's style is nobody's favourite, but gofmt is everybody's favourite." --Rob Pike
# NOTE: we are using clang-format-10.0.1 from upx-stubtools
# see https://github.com/upx/upx-stubtools/releases
# NOTE: we use .clang-format config from upx.git/.clang-format
if [[ ! -f $UPX_CLANG_FORMAT ]]; then
UPX_CLANG_FORMAT="$HOME/local/bin/bin-upx/clang-format-10.0.1"
fi
@ -22,7 +24,8 @@ if [[ ! -f $UPX_CLANG_FORMAT ]]; then
exit 1
fi
# NOTE: we use .clang-format config from upx.git/.clang-format
# limit memory usage to 1 GiB (in case of clang-format problems with invalid files)
ulimit -v 1048576 || true
#echo $UPX_CLANG_FORMAT
exec "$UPX_CLANG_FORMAT" -style=file "$@"