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
After applying the fix-it for modernize-use-ranges the include for the header <algorithm> appears twice.
modernize-use-ranges
<algorithm>
For example this code :
#include <vector> #include <algorithm> #include <iostream> void foo() { std::vector<int> my_vector = {1, 2, 3, 4, 5}; auto min_max = std::min_element(my_vector.begin(), my_vector.end()); }
becomes the following after the fix-it:
#include <algorithm> // <-- Duplicate header #include <vector> #include <algorithm> #include <iostream> void foo() { std::vector<int> my_vector = {1, 2, 3, 4, 5}; auto min_max = std::ranges::min_element(my_vector); }
godbolt: https://godbolt.org/z/6b4Pcnv5W
The text was updated successfully, but these errors were encountered:
No branches or pull requests
After applying the fix-it for
modernize-use-ranges
the include for the header<algorithm>
appears twice.For example this code :
becomes the following after the fix-it:
godbolt: https://godbolt.org/z/6b4Pcnv5W
The text was updated successfully, but these errors were encountered: