Files
UnrealEngine/Engine/Source/ThirdParty/openexr/openexr-3.3.2/share/util/reformat.sh
2025-05-18 13:04:45 +08:00

16 lines
354 B
Bash

#! /bin/sh
cformat=`which clang-format`
if [[ "${cformat}" == "" ]]; then
echo "ERROR: clang-format not found"
exit 1
fi
scriptpath=`realpath $0`
scriptdir=`dirname $scriptpath`
basedir=`dirname $scriptdir`
echo "Processing files in: ${basedir}"
cd ${basedir}
find . \( -name '*.cpp' -o -name '*.h' \) -exec ${cformat} -style=file -verbose -i {} \;