[GCC-XML]Find out the return statements in a function
James Michael DuPont
mdupont777 at yahoo.com
Thu Aug 7 12:50:28 EDT 2003
--- Iwan Birrer <ibirrer at control.ee.ethz.ch> wrote:
> Hello,
> How do I walk over all statements in a function/method and find all
> return
> statements?
You might want to check out the
tree dump function
http://www.nondot.org/gcc/tree-dump_8c-source.html
00605 case RETURN_STMT:
00606 dump_stmt (di, t);
00607 dump_child ("expr", RETURN_EXPR (t));
00608 dump_next_stmt (di, t);
00609 break;
The tree_dump is augmented by the introspector.sf.net project to dump
in rdf format. I will be producing a new version in the next 2-3
months, on feature will be a unification of the data models of gccxml
and doxygen.
mike
=====
James Michael DuPont
http://introspector.sourceforge.net/
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
More information about the gccxml
mailing list