<div dir="ltr">Sorry for writing 3 emails,<div>I looked into <a href="http://clang.llvm.org/docs/LibASTMatchersReference.html">http://clang.llvm.org/docs/LibASTMatchersReference.html</a>? and it seems that matcher </div><div>on : </div><table style="font-family:"lucida grande","lucida sans unicode",arial,verdana,helvetica,sans-serif"><tbody><tr style="vertical-align:top"><td style="padding:0.33em">Matcher<<a href="http://clang.llvm.org/doxygen/classclang_1_1CXXMemberCallExpr.html">CXXMemberCallExpr</a>></td><td class="gmail-name" style="padding:0.33em"><font color="#1155cc">-></font></td><td style="padding:0.33em">Matcher<<a href="http://clang.llvm.org/doxygen/classclang_1_1Expr.html">Expr</a>> InnerMatcher</td></tr></tbody></table><br><div>would be my candidate to check. If it won't gonna work then send the test and AST dump and I will try to help.</div><div><br></div><div>Piotr</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-11-27 22:35 GMT+01:00 Piotr Padlewski <span dir="ltr"><<a href="mailto:piotr.padlewski@gmail.com" target="_blank">piotr.padlewski@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Adding cfe-dev, because it is related to clang, not LLVM.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2016-11-27 22:34 GMT+01:00 Piotr Padlewski <span dir="ltr"><<a href="mailto:piotr.padlewski@gmail.com" target="_blank">piotr.padlewski@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Mads,<div>Can you provide the code that you run clang-query on, or at least AST for the fragment you want to match?</div><div><br></div><div>Piotr</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-1636274675611907480h5">2016-11-26 22:27 GMT+01:00 Mads Ravn via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-1636274675611907480h5"><div dir="ltr">Hi,<div><br></div><div>Hope this is the right channel for this question. I am trying to make an ast matcher for clang-tidy to find str1.compare(str2), where both str1 and str2 are std::string. I have this so far: <a href="http://i.imgur.com/sUma9WC.png" target="_blank">http://i.imgur.com/sUma9W<wbr>C.png</a> . But I am having a hard time finding a way to bind an id to the str1 part of the expression.</div><div><br></div><div>Can anyone help me out with an idea?</div><div><br></div><div>Best regards,</div><div>Mads Ravn</div></div>
<br></div></div>______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>