]> granicus.if.org Git - clang/commit
Don't issue a warning if the shadowing declaration is in a class
authorStephan Bergmann <sbergman@redhat.com>
Wed, 5 Apr 2017 08:36:58 +0000 (08:36 +0000)
committerStephan Bergmann <sbergman@redhat.com>
Wed, 5 Apr 2017 08:36:58 +0000 (08:36 +0000)
commit2971257756c10c405801c073a009ed06f1a6ad70
treebd68aee47e1828965779fc95b5b7ffe9802892d7
parent69fb56c4e9be5a27ddb845039f32bc4cf7ec7a47
Don't issue a warning if the shadowing declaration is in a class

Follow-up to r299363 "Enhance -Wshadow to warn when shadowing typedefs or type
aliases".

Patch by Ahmed Asadi.

Differential Revision: https://reviews.llvm.org/D31235

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@299522 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/SemaCXX/warn-shadow.cpp