[PATCH] D18271: Avoid -Wshadow warnings about constructor parameters named after fields
David Blaikie via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 18 10:56:48 PDT 2016
dblaikie added a subscriber: dblaikie.
dblaikie added a comment.
It's not just modifications of shadowed variables that are a problem - one of the one's I'm concerned we should catch is:
struct foo {
std::unique_ptr<int> p;
foo(std::unique_ptr<int> p) : p(std::move(p)) {
f(*p);
}
};
http://reviews.llvm.org/D18271
More information about the cfe-commits
mailing list