]> granicus.if.org Git - clang/commit
-Wshadow should only warn about parameter declarations when we're
authorJohn McCall <rjmccall@apple.com>
Mon, 22 Mar 2010 09:20:08 +0000 (09:20 +0000)
committerJohn McCall <rjmccall@apple.com>
Mon, 22 Mar 2010 09:20:08 +0000 (09:20 +0000)
commit053f4bddcb10bd3b17cd6a66fe52e265498603ed
tree8186079fefaaee4763263817eeebd7d123d858e3
parent48ad6094679ca2bf4f3593068e02e7a208c1a73c
-Wshadow should only warn about parameter declarations when we're
entering a function or block definition, not on every single declaration.
Unfortunately we don't have previous-lookup results around when it's time
to make this decision, so we have to redo the lookup.  The alternative is
to use delayed diagnostics.

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