example:
struct S { int i; }; void foo(const S &s) { auto& x = s.i; }
Isn't this a true positive? An unread variable can technically be const.
It's already const because 's' is const
constmight still improve readability though.
const
Log in to post a comment.
example:
Isn't this a true positive? An unread variable can technically be const.
It's already const because 's' is const
const
might still improve readability though.