commit | 053f4bddcb10bd3b17cd6a66fe52e265498603ed | [log] [tgz] |
---|---|---|
author | John McCall <rjmccall@apple.com> | Mon Mar 22 09:20:08 2010 +0000 |
committer | John McCall <rjmccall@apple.com> | Mon Mar 22 09:20:08 2010 +0000 |
tree | 8186079fefaaee4763263817eeebd7d123d858e3 | |
parent | 48ad6094679ca2bf4f3593068e02e7a208c1a73c [diff] |
-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