mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-23 21:45:46 -04:00
![]() This method is used to find complete definitions of a type when one parses a compile unit with only forward declaration available. Since it is only accessed from DWARFASTParserClang, it was not possible/easy to trigger this codepath from lldb-test. Therefore, I adapt add a debug-names variant to an existing dotest test to cover this scenario. llvm-svn: 334516 |
||
---|---|---|
.. | ||
foo.c | ||
foo.h | ||
main.c | ||
Makefile | ||
README.txt | ||
TestForwardDeclaration.py |
This example has a function call in foo.c named "foo" that takes a forward declaration to "struct bar" and uses it as a pointer argument. In main.c we have a real declaration for "struct bar". We want to be able to find the real definition of "struct bar" when we are stopped in foo in foo.c such that when we stop in "foo" we see the contents of the "bar_ptr".