summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprConstant.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-01-17 00:42:38 +0000
committerDouglas Gregor <dgregor@apple.com>2009-01-17 00:42:38 +0000
commitdee1be8e959e63c99cf87258f72beda0e5ae3c1d (patch)
tree930a3c0df948866360984f2376d1cac46151a316 /clang/lib/CodeGen/CGExprConstant.cpp
parent1c6549db6f982a2e916104e077ce353ab4b0fefe (diff)
downloadbcm5719-llvm-dee1be8e959e63c99cf87258f72beda0e5ae3c1d.tar.gz
bcm5719-llvm-dee1be8e959e63c99cf87258f72beda0e5ae3c1d.zip
Teach DeclContext how to find the primary declaration for any TagDecl
even when we are still defining the TagDecl. This is required so that qualified name lookup of a class name within its definition works (see the new bits in test/SemaCXX/qualified-id-lookup.cpp). As part of this, move the nested redefinition checking code into ActOnTag. This gives us diagnostics earlier (when we try to perform the nested redefinition, rather than when we try to complete the 2nd definition) and removes some code duplication. llvm-svn: 62386
Diffstat (limited to 'clang/lib/CodeGen/CGExprConstant.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud