Is there any way to get the caller of the CallExpr* in VisitCallExpr method with clang?

Viewed 3623

The method getDirectCallee() can get the callee (be called method/function) of the call expression, but is there any way to get the caller (the method/ function who called it) of the CallExpr* in VisitCallExpr() method?

Are there any other ways to know the caller of one call expression?

2 Answers
Related