[cfe-dev] misleading mistake/type in ast matchers documentation
mobi phil
mobi at mobiphil.com
Thu Dec 25 11:42:25 PST 2014
On the page,
http://clang.llvm.org/docs/LibASTMatchers.html
it is stated
"By default, matchers that accept multiple inner matchers use an implicit
allOf()
<http://clang.llvm.org/docs/LibASTMatchersReference.html#allOf0Anchor>.
This allows further narrowing down the match, for example to match all
classes that are derived from “Bar”: recordDecl(hasName("Foo"),
isDerivedFrom("Bar"))."
trying that with text based matchers, no result is returned. The correct
would be
recordDecl(hasName("Foo"), isDerivedFrom(recordDecl(hasName("Bar")))
Or the text based matchers do not behave exactly as the equivalent C++
matchers?
do not care that much about this little mistake in the docu. (if it is a
mistake). I care more to know if the string based matchers should behave
exactly as the C++ matchers.
rgrds,
mobi phil
being mobile, but including technology
http://mobiphil.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20141225/9f34a245/attachment.html>
More information about the cfe-dev
mailing list