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

Alex Lorenz via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 8 09:38:32 PST 2016


arphaman updated this revision to Diff 77205.
arphaman marked 2 inline comments as done.
arphaman added a comment.

The updated patch introduces a new warning group named `-Wshadow-uncaptured-local` that was suggested by Reid.


Repository:
  rL LLVM

https://reviews.llvm.org/D26278

Files:
  include/clang/Basic/DiagnosticGroups.td
  include/clang/Basic/DiagnosticSemaKinds.td
  lib/Sema/SemaDecl.cpp
  test/SemaCXX/warn-shadow-in-lambdas.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26278.77205.patch
Type: text/x-patch
Size: 8702 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161108/265c8158/attachment.bin>


More information about the cfe-commits mailing list