[PATCH] D18271: Avoid -Wshadow warnings about constructor parameters named after fields

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 19 08:58:37 PDT 2016


rnk updated this revision to Diff 54206.
rnk added a comment.

- Address review comments
- Add -Wshadow-all and -Wshadow-field-in-constructor, also address review comments
- Warn twice under -Wshadow-all if a shadowing parameter is modified


http://reviews.llvm.org/D18271

Files:
  include/clang/Basic/Diagnostic.h
  include/clang/Basic/DiagnosticGroups.td
  include/clang/Basic/DiagnosticSemaKinds.td
  include/clang/Sema/Sema.h
  lib/Sema/AnalysisBasedWarnings.cpp
  lib/Sema/SemaDecl.cpp
  lib/Sema/SemaExpr.cpp
  test/SemaCXX/warn-shadow.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18271.54206.patch
Type: text/x-patch
Size: 10976 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160419/48c6e6a7/attachment-0001.bin>


More information about the cfe-commits mailing list