<div dir="ltr"><div class="gmail_default" style>Look at the outer expression? You should see the DeclRefExpr inside of a CallExpr or one of the other call AST nodes for actual calls.</div></div><div class="gmail_extra"><br>
<br><div class="gmail_quote">On Sat, Jan 5, 2013 at 12:26 AM, kevinlynx <span dir="ltr"><<a href="mailto:kevinlynx@gmail.com" target="_blank">kevinlynx@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
say I have the codes below:<br><br> void func() {}<br> void test() {<br> func(); // function call<br> if (func) { // only reference the function <br> }<br> }<br><br>when I get a DeclRefExpr from RecursiveASTVisitor::VisitDeclRefExpr, and I know `func` is a function type, But how can i know it's used as a normal function call, or a reference only ? <br>
<br>Thanks.<br><br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">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/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>