<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hello Piotr,<br>
      <br>
      has() matcher ignores implicit casts and parens. That's not a bug
      (however, it will be good to point it in doxygen).<br>
      <br>
      <br>
      13.05.2016 15:27, Piotr Padlewski via cfe-dev пишет:<br>
    </div>
    <blockquote
cite="mid:CAEhrgAMr3LUxbib+f87Gw0Mjm+924ZaGDmwmWwpnaPLxjX8gMw@mail.gmail.com"
      type="cite">
      <div dir="ltr">I am have a problem with has matcher. It doesn't
        work for cases like
        <div>implicitCastExpr(has(implicitCastExpr()))</div>
        <div>or </div>
        <div>
          <pre class="" id="comment_text_0" style="font-size:medium;white-space:pre-wrap;width:50em;color:rgb(0,0,0)">cxxMemberCallExpr(has(materializeTemporaryExpr())))</pre>
          <pre class="" id="comment_text_0" style="font-size:medium;white-space:pre-wrap;width:50em;color:rgb(0,0,0)">or</pre>
          <pre class="" id="comment_text_0" style="width:50em"><pre class="" id="comment_text_1" style="color:rgb(0,0,0);font-size:medium;white-space:pre-wrap;width:50em">returnStmt(has(implicitCastExpr()))</pre><pre class="" id="comment_text_1" style="color:rgb(0,0,0);font-size:medium;white-space:pre-wrap;width:50em">Here is a bug in bugzilla</pre><pre class="" id="comment_text_1" style="width:50em"><font color="#000000" size="3"><span style="white-space:pre-wrap"><a moz-do-not-send="true" href="https://llvm.org/bugs/show_bug.cgi?id=27713">https://llvm.org/bugs/show_bug.cgi?id=27713</a>
</span></font></pre><pre class="" id="comment_text_1" style="width:50em"><font color="#000000" size="3"><span style="white-space:pre-wrap">
</span></font></pre><pre class="" id="comment_text_1" style="width:50em"><font color="#000000" size="3"><span style="white-space:pre-wrap">Am I doing something wrong or it is a bug? This thing blocks me on 2 clang-tidy checks that I am working on.</span></font></pre><pre class="" id="comment_text_1" style="width:50em"><font color="#000000" size="3"><span style="white-space:pre-wrap">
</span></font></pre><pre class="" id="comment_text_1" style="width:50em"><font color="#000000" size="3"><span style="white-space:pre-wrap">Thanks</span></font></pre><pre class="" id="comment_text_1" style="width:50em"><font color="#000000" size="3"><span style="white-space:pre-wrap">Piotr</span></font></pre><pre class="" id="comment_text_1" style="color:rgb(0,0,0);font-size:medium;white-space:pre-wrap;width:50em">
</pre></pre>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
cfe-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>