<div dir="ltr"><div class="gmail_extra"><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>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 style>This doesn't compile, and gives:</div><div style><br></div><div style><div>error: no member named 'getType' in 'clang::Stmt'</div><div>  return InnerMatcher.matches(Node.getType(), Finder, Builder);</div>
<div><br></div><div style>Is there a different way (or better approach to getting at the parameter data)? </div><div><br></div></div><div style>-- <br></div>Peeter
</div></div>