In the current directory, find all files ending in .(cpp|cu|glsl|h) that are not named *FontData*
and are not in a path matching *thirdparty*
. Run clang-format on each of these files, using the format specified in .clang-format
.
Linux/GNU find:
find . \( -regex '.*\.\(cpp\|cu\|glsl\|h\)' ! -iname '*FontData*' ! -ipath '*thirdparty*' \) -exec clang-format -i '{}' \;
OSX/BSD find:
find -E . \( -regex '.*\.(cpp|cu|glsl|h)' ! -iname '*FontData*' ! -ipath '*thirdparty*' \) -exec clang-format -i '{}' \;
Linux/GNU find:
find . \( -regex '.*\.\(cpp\|cu\|glsl\|h\)' ! -ipath '*/collision/bullet/*' ! -ipath '*/unit_PYTHON/*' ! -ipath '*/collision/convexdecomposition/*' ! -ipath '*/collision/gimpact/*' \) -exec clang-format -i '{}' \;
OSX/BSD find:
find -E . \( -regex '.*\.(cpp|cu|glsl|h)' ! -ipath '*/collision/bullet/*' ! -ipath '*/unit_PYTHON/*' ! -ipath '*/collision/convexdecomposition/*' ! -ipath '*/collision/gimpact/*' \) -exec clang-format -i '{}' \;