Getting local variables from template function / method

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux