summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/warn-shadow.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 'extern' variables in functions don't shadow externs in global scope. Fixes ↵Argyrios Kyrtzidis2011-04-251-0/+11
| | | | | | rdar://8883302, this time for C++ as well. llvm-svn: 130157
* In Sema::CheckShadow, get the DeclContext from the variable that we are checkingArgyrios Kyrtzidis2011-02-081-0/+15
| | | | | | | | instead from the Scope; Inner scopes in bodies don't have DeclContexts associated with them. Fixes http://llvm.org/PR9160 & rdar://problem/8966163. llvm-svn: 125097
* Don't warn that variables in C++ static member functions shadow fields. ↵Argyrios Kyrtzidis2011-01-311-0/+13
| | | | | | Fixes rdar://8900456. llvm-svn: 124581
* Implement -Wshadow for parameter declarations as well.John McCall2010-03-201-0/+6
| | | | llvm-svn: 99037
* Forgot the testcases.John McCall2010-03-161-0/+38
llvm-svn: 98685
OpenPOWER on IntegriCloud