[PATCH] D35941: Fix -Wshadow false positives with function-local classes.
Reid Kleckner via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 27 11:03:17 PDT 2017
rnk added a comment.
I'm not really sure this is a bug. The point of -Wshadow is to warn on valid but possibly confusing code. Shadowing a variable is perfectly legal, but people think it's confusing, so we implemented this warning. Are we concerned that people might get confused between the different local variables here?
https://reviews.llvm.org/D35941
More information about the cfe-commits
mailing list