]> granicus.if.org Git - clang/commit
Diagnose parameter names that shadow the names of inherited fields under -Wshadow...
authorAaron Ballman <aaron@aaronballman.com>
Fri, 2 Nov 2018 21:04:44 +0000 (21:04 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 2 Nov 2018 21:04:44 +0000 (21:04 +0000)
commit38ae8879fa59652fb89e9383c6ff89bfad099439
tree94b0c097467926c381211fe0eb13659cfb03c8bc
parent90458949c1c82c72ec45267838ad6b313d25b745
Diagnose parameter names that shadow the names of inherited fields under -Wshadow-field.

This addresses PR34120. Note, unlike GCC, we take into account the accessibility of the field when deciding whether to warn or not.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@346041 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclCXX.cpp
test/SemaCXX/warn-shadow.cpp