We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
@llvm/issue-subscribers-bug
Author: Richard Thomson (LegalizeAdulthood)
if (box_depth > max_depth) // limit the depth to max { box_depth = max_depth; }
Sorry, something went wrong.
@llvm/issue-subscribers-clang-tidy
No branches or pull requests
Suppose you have the following code:
after applying readability-use-std-min-max, the code is:
the explaining comment is dropped.
The expected code is:
The text was updated successfully, but these errors were encountered: