Clang doesn't store parental  relationships of AST nodes by default. So you'd have to keep track of that yourself. If you're working with AST matches I Selene you can use the 'parent map' for this.<br><br>
<div>On Sunday, December 29, 2013 4:37:14 AM, lotay <<a href="mailto:158481612@qq.com">158481612@qq.com</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all.<br>
<br>
the method of getDirectCallee() can get the callee(be called<br>
method/function) of the call expression,<br>
but Is there any way to get the caller(the method/ function who called it)<br>
of the CallExpr* in VisitCallExpr () method?<br>
Can anyone help me for this problem, or are there any other ways to know the<br>
caller of one call expression?<br>
<br>
Thanks in advance for any help...<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://clang-developers.42468.n3.nabble.com/Is-there-any-way-to-get-the-caller-of-the-CallExpr-in-VisitCallExpr-method-tp4036801.html" target="_blank">http://clang-developers.42468.<u></u>n3.nabble.com/Is-there-any-<u></u>way-to-get-the-caller-of-the-<u></u>CallExpr-in-VisitCallExpr-<u></u>method-tp4036801.html</a><br>

Sent from the Clang Developers mailing list archive at Nabble.com.<br>
______________________________<u></u>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/cfe-dev</a><br>
</blockquote>