[cfe-dev] forEachDescendant(eachOf(...)) working on clang-query but not on clang
Farzad Sadeghi via cfe-dev
cfe-dev at lists.llvm.org
Mon Nov 28 12:55:12 PST 2016
so the name pretty much says it all.
so for example we have this matcher:
forStmt(forEachDescendant(eachOf(unaryOperator(hasOperatorName("--")),
binaryOperator(hasOperatorName("=")))))
it runs fine on clang-query but when i try to compile it with clang i get this:
mutator-lvl0.cpp:1464:32: error: no matching function for call to
object of type 'const
internal::ArgumentAdaptingMatcherFunc<internal::ForEachDescendantMatcher>'
Matcher.addMatcher(forStmt(forEachDescendant(eachOf(unaryOperator(hasOperatorName("--")),
binaryOperator(hasOperatorName("="))))).bind("mccse136daddy"),
&HandlerForCSE136);
^~~~~~~~~~~~~~~~~
so was wondering what can i do to fix this, since i need the matcher
that i just wrote.
--
Farzad Sadeghi
More information about the cfe-dev
mailing list