You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>&2echo"It needs to be an executable file. Specify the formatter as the first command line argument."
exit 1
fi
if [ !-x"${CLANG_FORMAT_RESOLVED}" ];then
>&2echo"ERROR: the formatter is not executable."
>&2echo"Specified or default: ${CLANG_FORMAT}"
>&2echo"Resolves to: ${CLANG_FORMAT_RESOLVED}"
>&2echo"It needs to be an executable file. Specify the formatter as the first command line argument."
exit 2
fi
echo"Formatting *.h, *.c, global.pre in directory ${SCRIPT_DIR}."
if!cd"${SCRIPT_DIR}";then
>&2echo"ERROR: cannot change to the target directory."
>&2echo"Target directory: ${SCRIPT_DIR}"
>&2echo"The script will change directory (cd) to the target directory and run the formatter on files there. The target directory is taken from the location of this Bash script."
exit 3
fi
# 'find' on MacOS requires the directory argument to be present. That's the
# first argument to 'find'. Also skip over dotfile directories using ".?*"
# where the question mark prevents matching the root dir ".".