summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-09-20 01:15:31 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-09-20 01:15:31 +0000
commita41c97a5d1912ffd184381d269fd8e5a25ee5e59 (patch)
treee0b7d59d5d757800919f91662bc9b749a692c3e1 /lib/CodeGen/CodeGenFunction.cpp
parent8adf837adc65b55a3f74643c02c1ee077dc26f06 (diff)
downloadclang-a41c97a5d1912ffd184381d269fd8e5a25ee5e59.tar.gz
clang-a41c97a5d1912ffd184381d269fd8e5a25ee5e59.tar.bz2
clang-a41c97a5d1912ffd184381d269fd8e5a25ee5e59.tar.xz
Switch the semantic DeclContext for a block-scope declaration of a function or
variable from being the function to being the enclosing namespace scope (in C++) or the TU (in C). This allows us to fix a selection of related issues where we would build incorrect redeclaration chains for such declarations, and fail to notice type mismatches. Such declarations are put into a new IdentifierNamespace, IDNS_LocalExtern, which is only found when searching scopes, and not found when searching DeclContexts. Such a declaration is only made visible in its DeclContext if there are no non-LocalExtern declarations. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191064 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions