<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Mon, Nov 28, 2016 at 9:55 PM Farzad Sadeghi via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">so the name pretty much says it all.<br class="gmail_msg">
so for example we have this matcher:<br class="gmail_msg">
forStmt(forEachDescendant(eachOf(unaryOperator(hasOperatorName("--")),<br class="gmail_msg">
binaryOperator(hasOperatorName("=")))))<br class="gmail_msg"></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">it runs fine on clang-query but when i try to compile it with clang i get this:<br class="gmail_msg">
mutator-lvl0.cpp:1464:32: error: no matching function for call to<br class="gmail_msg">
object of type 'const<br class="gmail_msg">
internal::ArgumentAdaptingMatcherFunc<internal::ForEachDescendantMatcher>'<br class="gmail_msg">
    Matcher.addMatcher(forStmt(forEachDescendant(eachOf(unaryOperator(hasOperatorName("--")),<br class="gmail_msg">
binaryOperator(hasOperatorName("="))))).bind("mccse136daddy"),<br class="gmail_msg">
&HandlerForCSE136);<br class="gmail_msg">
                               ^~~~~~~~~~~~~~~~~<br class="gmail_msg">
so was wondering what can i do to fix this, since i need the matcher<br class="gmail_msg">
that i just wrote.<br class="gmail_msg"></blockquote><div><br></div><div>forEachDescendant(eachOf()) will probably not work - you'll have to say what node type you expect, like forEachDescendant(stmt(eachOf(...)))</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br class="gmail_msg">
--<br class="gmail_msg">
Farzad Sadeghi<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
cfe-dev mailing list<br class="gmail_msg">
<a href="mailto:cfe-dev@lists.llvm.org" class="gmail_msg" target="_blank">cfe-dev@lists.llvm.org</a><br class="gmail_msg">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br class="gmail_msg">
</blockquote></div></div>