summaryrefslogtreecommitdiffstats
path: root/clang/unittests/AST/SourceLocationTest.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-07-16 23:25:44 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-07-16 23:25:44 +0000
commit204f2e500a4fd3dd0f951e72d58013dda0cf999b (patch)
treeda99a092196d50528905573045fa9879b2ae8caa /clang/unittests/AST/SourceLocationTest.cpp
parent11572dc91e67e9b4dc6cc1e7dad2d1c962e8a1a3 (diff)
downloadbcm5719-llvm-204f2e500a4fd3dd0f951e72d58013dda0cf999b.tar.gz
bcm5719-llvm-204f2e500a4fd3dd0f951e72d58013dda0cf999b.zip
DebugInfo: Ensure the ASTConsumer "HandleTagDeclRequireDefinition" callback path is tested.
By having the two variables 'a' and 'b' in this test in a namespace, the type was required to be complete before any debug info was ever emitted (the entire namespace is parsed before the variables were emitted), this meant that the codepath in which a declaration is emitted, then later on the type is required to be complete and the debug info must be upgraded to a definition was not used. Moving the variables outside a namespace fixes this test coverage bug. (interestingly, code coverage didn't help here - HandleTagDeclRequireDefinition is fully covered because it's called even in cases where the type hasn't been emitted for debug info at all (further down in CGDebugInfo this no-ops) - so CC wouldn't've helped catch this test coverage problem) llvm-svn: 213211
Diffstat (limited to 'clang/unittests/AST/SourceLocationTest.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud