<div dir="ltr"><div class="gmail_quote">On Tue Feb 17 2015 at 3:33:27 PM Jonathan Coe <<a href="mailto:jbcoe@me.com">jbcoe@me.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-size:12.8000001907349px">I'm finding it very hard to find information and examples on using the matchers and API to do a number of things. I wondered if anyone knew of a good source of introductory info that goes into some depth? Eli Bendersky's blogs are very good but I need more detail on specific things: I'm keen to use matchers to match standard library types by name but that seems hard.</div></div></blockquote><div><br></div><div>Shameless plug to all the docs we wrote and a talk of mine :)</div><div><a href="http://clang.llvm.org/docs/IntroductionToTheClangAST.html">http://clang.llvm.org/docs/IntroductionToTheClangAST.html</a><br></div><div><a href="http://clang.llvm.org/docs/LibASTMatchers.html">http://clang.llvm.org/docs/LibASTMatchers.html</a><br></div><div><a href="http://clang.llvm.org/docs/LibASTMatchersReference.html">http://clang.llvm.org/docs/LibASTMatchersReference.html</a><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I have work in progress here:</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><ul><li style="margin-left:15px"><a href="https://github.com/jbcoe/clang-tools-extra/blob/missing_namespace_std/clang-tidy/misc/MissingNamespaceStdCheck.cpp" target="_blank">https://github.com/jbcoe/clang-tools-extra/blob/missing_namespace_std/clang-tidy/misc/MissingNamespaceStdCheck.cpp</a><br><br></li><li style="margin-left:15px"><a href="https://github.com/jbcoe/clang-tools-extra/blob/propagate_const/clang-tidy/misc/PropagateConstCheck.cpp" target="_blank">https://github.com/jbcoe/clang-tools-extra/blob/propagate_const/clang-tidy/misc/PropagateConstCheck.cpp</a><br></li></ul></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I'm stuck on both:</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><ul><li style="margin-left:15px">MissingNameSpaceStd can't cope with pointers, references or template types like std::vector<std::pair<int,int>><br><br></li><li style="margin-left:15px">PropagateConst can't match smart pointers. Ideally it would do so by duck-typing but I'd settle for name matching for now.</li></ul></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I've posted messages on the clang IRC channel but am met by stony silence. I've not used IRC before so perhaps my setup is wrong.</div></div></blockquote><div><br></div><div>Feel free to ping me directly there (r4nt) during CEST time; note that yesterday was a holiday in the US where not that many people were online.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-size:12.8000001907349px">I set up a review account on <a href="http://llvm.org/docs/Phabricator.html" style="font-size:12.8000001907349px" target="_blank">http://llvm.org/docs/Phabricator.html</a> and have patches for the git repositories above but need a repository name for Differential (clang, clang-tools-extra, llvm are not right) to make progress.</div></div></blockquote><div><br></div><div>You don't need to fill in the repo name.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Thanks for any help you may be able to offer. </div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">regards,</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Jon</div></div>
______________________________<u></u>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/cfe-dev</a><br>
</blockquote></div></div>