[PATCH] D31235: Enhance -Wshadow to warn when shadowing typedefs or type aliases

Ahmed Asadi via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 30 21:13:05 PDT 2017


ahmedasadi updated this revision to Diff 93583.
ahmedasadi marked an inline comment as done.
ahmedasadi added a comment.

Re-ordered the checks in shouldWarnIfShadowedDecl as suggested by rnk.


https://reviews.llvm.org/D31235

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31235.93583.patch
Type: text/x-patch
Size: 13172 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170331/baf80a44/attachment-0001.bin>


More information about the cfe-commits mailing list