[PATCH] D26278: Avoid -Wshadow warnings for shadowed variables that aren't captured by lambdas with an explicit capture list

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 7 13:02:53 PST 2016


rnk added a comment.

I'd like to preserve the old behavior under -Wshadow-all. The last time I came here to try to quiet a shadowing warning on constructor parameters, we went to great lengths to try to satisfy users who really want to warn on any and all kinds of shadowing. I think you can do it by adding a new diagnostic with the same text in a new group, and using the new diagnostic id if appropriate instead of returning like you do now.


Repository:
  rL LLVM

https://reviews.llvm.org/D26278





More information about the cfe-commits mailing list