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
#include <vector> struct A { void f() const { std::vector<int> v_s; for (const auto& s : v_) { v_s.emplace_back(s); } } std::vector<int> v_; };
This was reduced from a much bigger class where the variable was actually filled.
If I make both members static or implement it with a function and a global warning the warning is being reported.
Tested with version 11.0.1.
The text was updated successfully, but these errors were encountered:
Proposed patch - https://reviews.llvm.org/D101624
Sorry, something went wrong.
Fixed in 0e0b0fe
No branches or pull requests
Extended Description
This was reduced from a much bigger class where the variable was actually filled.
If I make both members static or implement it with a function and a global warning the warning is being reported.
Tested with version 11.0.1.
The text was updated successfully, but these errors were encountered: