Files
UnrealEngine/Engine/Source/ThirdParty/openexr/openexr-3.3.2/share/util/reformat.sh
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

16 lines
354 B
Bash
Executable File

#! /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 {} \;