# shellcheck disable=SC2086
find "$root_dir" -path './src/vendor' -prune \
-o -type f \( -name '*\.h' -o -name '*\.hpp' -o -name '*\.c' -o -name '*\.cpp' \) \
# shellcheck disable=SC2086
find "$root_dir" -path './src/vendor' -prune \
-o -type f \( -name '*\.h' -o -name '*\.hpp' -o -name '*\.c' -o -name '*\.cpp' \) \
formatter=$FORMATTER
elif command -v clang-format-$expected_formatter_major_version &> /dev/null; then
# Try using the expected version of clang-format
formatter=$FORMATTER
elif command -v clang-format-$expected_formatter_major_version &> /dev/null; then
# Try using the expected version of clang-format