Open
Description
Suppose you have the following code:
if (box_depth > max_depth) // limit the depth to max
{
box_depth = max_depth;
}
after applying readability-use-std-min-max, the code is:
box_depth = std::min(box_depth, max_depth);
the explaining comment is dropped.
The expected code is:
box_depth = std::min(box_depth, max_depth); // limit the depth to max