fi
if [ -z "$CLANG_FORMAT" ]
then
- echo "Please set the path to clang-format using CLANG_FORMAT or"
- echo "git config hooks.clang_formatpath."
- echo "See docs/dev-manual/clang-format.rst for how to get one."
+ echo "Please set the path to clang-format using the git hook"
+ echo "git config hooks.clang_formatpath /path/to/clang-format"
+ echo "or by setting an environment variable, e.g."
+ echo "CLANG_FORMAT=/path/to/clang-format"
+ echo "See docs/dev-manual/code-formatting.rst for how to get clang-format."
exit 2
fi
if ! which "$CLANG_FORMAT" 1>/dev/null
}
else
{
- time_unit_t time_unit = static_cast<time_unit_t>(
- impl_->settings_.timeUnit() + 1); // NOLINT(bugprone-misplaced-widening-cast)
+ // NOLINTNEXTLINE(bugprone-misplaced-widening-cast)
+ time_unit_t time_unit = static_cast<time_unit_t>(impl_->settings_.timeUnit() + 1);
xvg_format_t xvg_format = (impl_->settings_.plotFormat() > 0
? static_cast<xvg_format_t>(impl_->settings_.plotFormat())
: exvgNONE);
options.finish();
/* set program name, command line, and default values for output options */
+ // NOLINTNEXTLINE(bugprone-misplaced-widening-cast)
output_env_init(oenv, gmx::getProgramContext(), static_cast<time_unit_t>(timeUnit + 1),
- bView, // NOLINT(bugprone-misplaced-widening-cast)
- static_cast<xvg_format_t>(xvgFormat + 1), 0);
+ bView, static_cast<xvg_format_t>(xvgFormat + 1), 0);
/* Extract Time info from arguments */
if (bBeginTimeSet)