<div dir="ltr">Hi,<div><br></div><div>Never mind. I found the solution:</div><div><br></div><div>memberCallExpr(thisPointerType(<span style="font-size:13px;font-family:arial,sans-serif">recordDecl(hasName("SomeType")</span><span style="font-size:13px;font-family:arial,sans-serif">)))).bind("SomeTypeCall");</span><br>
</div><div><span style="font-size:13px;font-family:arial,sans-serif"><br></span></div><div><span style="font-size:13px;font-family:arial,sans-serif">/J</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Sep 10, 2013 at 9:57 PM, Jonas Bülow <span dir="ltr"><<a href="mailto:jonas.bulow@gmail.com" target="_blank">jonas.bulow@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi,<div><br></div><div>Using this AST matcher:</div><div><br></div><div>memberCallExpr(on(hasType(recordDecl(hasName("SomeType"))))).bind("SomeTypeCall");<br></div><div><br></div><div>I can match calls like X.Foo() when X is of type SomeType.</div>
<div><br></div><div>I can't figure out how to write a matcher for calls on the form X->Foo(). Any hints?</div><div><br></div><div><br></div><div>Regards,</div><div> Jonas</div></div>
</blockquote></div><br></div>