Retrieving the element to be casted in "ExplicitCastExpr

Thank you for answering the question. I implemented an ad-hoc solution for this case, got the DeclRefExpr node and obtain the ValueDecl from it. The result was “kapplication” instead of “kapp”.

#define kapp KApplication::kApplication()

In any case, as I commented in my message, I need a general solution for this. What if that expression is not a cast of a DeclRefExpr node? Maybe it is a cast of the returning element of the calling to a method. In this sense, what’s the reason why I cannot simply retrieve the expression in parentheses as it is explicitly written in the code?

Thanks again.

El día 02 feb 2015 05:46, Nikola Smiljanic popizdeh@gmail.com escribió: