[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
Wed Mar 22 00:55:59 PDT 2017


ahmedasadi created this revision.

Enhance -Wshadow to emit a warning when typedefs or type aliases are shadowed, or when it shadows a variable.

Bug:

https://bugs.llvm.org//show_bug.cgi?id=28676


Repository:
  rL LLVM

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.92602.patch
Type: text/x-patch
Size: 13254 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170322/dc527639/attachment-0001.bin>


More information about the cfe-commits mailing list