summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-02-24 04:26:15 +0000
committerDouglas Gregor <dgregor@apple.com>2009-02-24 04:26:15 +0000
commitde681d43eb42158d76a217e7ed6f26ad5f946d7e (patch)
tree1bc72082bbbca13aaa1f0a7c51747113ebb92289 /clang/lib/CodeGen/CodeGenModule.cpp
parent729a8202d0ba660acdc19ddb96420c3363bf2362 (diff)
downloadbcm5719-llvm-de681d43eb42158d76a217e7ed6f26ad5f946d7e.tar.gz
bcm5719-llvm-de681d43eb42158d76a217e7ed6f26ad5f946d7e.zip
In C, when we see a function declaration within a local scope, export
that declaration to global scope so that it can be found from other scopes. This allows us to diagnose redeclaration errors for external declarations across scopes. We also warn when name lookup finds such an out-of-scope declaration. This is part of <rdar://problem/6127293>; we'll also need to do the same thing for variables. llvm-svn: 65373
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud