Getting local variables from template function / method
Klesk
kleskmail@gmail.com
Sat Oct 24 13:14:00 GMT 2009
Hi
I would like to get local variables defined in template function /
method, but I have no idea how to do it. For non template functions /
methods I just :
BIND_EXPR_BLOCK( DECL_SAVED_TREE( _function ) ) and then iterate
through blocks, subblocks. For each block I get defined variables from
BLOCK_VARS.
Unfortunately it doesn't work for template functions / methods -
theirs DECL_SAVED_TREE returns BIND_EXPR with undefined type and
BIND_EXPR_BLOCK( DECL_SAVED_TREE( _template_function) ) returns NULL.
Any idea how should I do it ?
Thank you
Klesk
More information about the Gcc-help
mailing list