Thanks, but that gives the type of the return expression. I'm after the function prototype (if there is one) so I can do some checking between the expected and actual types.<div> </div>Phil.<br /><br>  <div style="font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div  dir="ltr" > <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Nikola Smiljanic <popizdeh@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> Phil King <phil_king@rocketmail.com> <br><b><span style="font-weight: bold;">Cc:</span></b> Clang dev mailing list <cfe-dev@cs.uiuc.edu> <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, 23 March 2012, 9:12<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [cfe-dev] Function return type from ReturnStmt<br> </font>
 </div> <br>Until somebody who definitely knows this answers, how about<BR>stmt->getRetValue()->getType()?<BR><br><br> </div> </div>