It'll be great to add a readability check to suggest the replacement of conditional statements with std::min/std::max. For example:
if (value1 < value2) value1 = value2; // value1 = std::max(value1, value2); if (value2 < value1) value1 = value2; // value1 = std::min(value1, value2);
value2 may be expression, number, etc.
See also PyLint's consider-using-min-builtin and consider-using-max-builtin.