Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Getting node declaration

Hey Folks,

Having an expression node, is it possible to get the IASTNode of some variable of this expression?

E.g:

void main() {
    int c;
    c = 10;
}

I have the IASTNode "c = 10;". How can I get the IASTNode where the variable "c" is declared (int c;)?


Thanks,
Roberto Oliveira



Back to the top