<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 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 style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I set up a review account on <a href="http://llvm.org/docs/Phabricator.html" target="_blank" style="font-size:12.8000001907349px">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 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>