<div dir="ltr">On Fri, Apr 26, 2013 at 4:43 PM, Peeter Joot <span dir="ltr"><<a href="mailto:peeter.joot@gmail.com" target="_blank">peeter.joot@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="im"><br><div class="gmail_quote">On Fri, Apr 26, 2013 at 9:31 AM, Manuel Klimek <span dir="ltr"><<a href="mailto:klimek@google.com" target="_blank">klimek@google.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>integerLiteral(equals(3)).bind("x"); same for declRefExpr. The only thing you cannot bind here is "hasType", but I'm surprised this compiles at all... stmt(hasType(pointsTo(...))).bind("x") should work...</div>

</blockquote></div><br></div>I've tried:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">  Finder.addMatcher(</div><div class="gmail_extra">        callExpr( allOf(</div><div class="gmail_extra">

              callee(functionDecl(hasName("myfunc"))),</div><div class="gmail_extra">              hasArgument(1,</div><div class="gmail_extra">                 stmt(hasType(</div><div class="gmail_extra">                    pointsTo(</div>

<div class="gmail_extra">                       pointsTo( recordDecl(hasName("void")) )</div><div class="gmail_extra">                       )</div><div class="gmail_extra">                    ))</div><div class="gmail_extra">

                    .bind("x")</div><div class="gmail_extra">                 )</div><div class="gmail_extra">           )),</div><div class="gmail_extra">    &gmblkCallBack);</div><div><br></div><div><br></div>

<div>This doesn't compile, and gives:</div><div><br></div><div><div>error: no member named 'getType' in 'clang::Stmt'</div><div>  return InnerMatcher.matches(Node.getType(), Finder, Builder);</div>
<div><br></div><div>Is there a different way (or better approach to getting at the parameter data)? </div></div></div></div></blockquote><div><br></div><div style>Sorry, of course expr(hasType(...)).bind(...) :)</div><div>
 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div><span class="HOEnZb"><font color="#888888"><div><br></div></font></span></div>
<span class="HOEnZb"><font color="#888888"><div>-- <br></div>Peeter
</font></span></div></div>
</blockquote></div><br></div></div>