<div dir="ltr"><div>On the page,</div><div><br></div><div><br></div><div><br></div><div><a href="http://clang.llvm.org/docs/LibASTMatchers.html" target="_blank">http://clang.llvm.org/docs/LibASTMatchers.html</a><br></div><div><br></div><div>it is stated </div><div><br></div><div><span style="color:rgb(51,51,51);font-family:'DejaVu Sans',Arial,Helvetica,sans-serif;font-size:14px;line-height:21.6000003814697px;text-align:justify">"By default, matchers that accept multiple inner matchers use an implicit </span><a href="http://clang.llvm.org/docs/LibASTMatchersReference.html#allOf0Anchor" style="font-weight:bold;text-decoration:none;color:rgb(137,38,1);font-family:'DejaVu Sans',Arial,Helvetica,sans-serif;font-size:14px;line-height:21.6000003814697px;text-align:justify" target="_blank">allOf()</a><span style="color:rgb(51,51,51);font-family:'DejaVu Sans',Arial,Helvetica,sans-serif;font-size:14px;line-height:21.6000003814697px;text-align:justify">. This allows further narrowing down the match, for example to match all classes that are derived from “</span><tt style="font-size:1em;color:rgb(51,51,51);text-align:justify;background-color:rgb(226,226,226)"><span>Bar</span></tt><span style="color:rgb(51,51,51);font-family:'DejaVu Sans',Arial,Helvetica,sans-serif;font-size:14px;line-height:21.6000003814697px;text-align:justify">”: </span><tt style="font-size:1em;color:rgb(51,51,51);text-align:justify;background-color:rgb(226,226,226)"><span>recordDecl(hasName("Foo"),</span> <span>isDerivedFrom("Bar"))</span></tt><span style="color:rgb(51,51,51);font-family:'DejaVu Sans',Arial,Helvetica,sans-serif;font-size:14px;line-height:21.6000003814697px;text-align:justify">."</span><br></div><div><span style="color:rgb(51,51,51);font-family:'DejaVu Sans',Arial,Helvetica,sans-serif;font-size:14px;line-height:21.6000003814697px;text-align:justify"><br></span></div><div>trying that with text based matchers, no result is returned. The correct would be</div><div><br></div><div><tt style="font-size:1em;color:rgb(51,51,51);text-align:justify;background-color:rgb(226,226,226)"><span>recordDecl(hasName("Foo"),</span> <span>isDerivedFrom(recordDecl(hasName("Bar")))</span></tt><br></div><div><tt style="font-size:1em;color:rgb(51,51,51);text-align:justify;background-color:rgb(226,226,226)"><span><br></span></tt></div><div>Or the text based matchers do not behave exactly as the equivalent C++ matchers?<br></div><div><br></div><div>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.</div><div><br></div><div><br></div><div><div>rgrds,<br>mobi phil<br><br>being mobile, but including technology<br><a href="http://mobiphil.com" target="_blank">http://mobiphil.com</a></div>
</div></div>