aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/warn-shadow.cpp
AgeCommit message (Collapse)Author
2011-04-25'extern' variables in functions don't shadow externs in global scope. Fixes ↵Argyrios Kyrtzidis
rdar://8883302, this time for C++ as well. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130157 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-08In Sema::CheckShadow, get the DeclContext from the variable that we are checkingArgyrios Kyrtzidis
instead from the Scope; Inner scopes in bodies don't have DeclContexts associated with them. Fixes http://llvm.org/PR9160 & rdar://problem/8966163. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125097 91177308-0d34-0410-b5e6-96231b3b80d8
2011-01-31Don't warn that variables in C++ static member functions shadow fields. ↵Argyrios Kyrtzidis
Fixes rdar://8900456. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124581 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-20Implement -Wshadow for parameter declarations as well.John McCall
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99037 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-16Forgot the testcases.John McCall
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98685 91177308-0d34-0410-b5e6-96231b3b80d8