+ cfe-dev<div><br></div><div>Sure. Feel free to add it. It seems to be just an oversight.</div><div><br></div><div>Cheers,</div><div>Daniel</div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Sep 14, 2012 at 4:39 PM, Gábor Horváth <span dir="ltr"><<a href="mailto:xazax.hun@gmail.com" target="_blank">xazax.hun@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<br><br>I have my first question. We have several matchers about casts, however we don't jave matchers for C style casts.<br>
In my usercode I checked for C Style casts like this: expr<span>(</span>explicitCastExpr<span>(</span>unless<span>(</span>anyOf<span>(</span>constCastExpr<span>(),</span>reinterpretCastExpr<span>(),</span>dynamicCastExpr<span>(),</span>staticCastExpr<span>())))))<br>

<br>Do you think it is worth adding a matcher for c style casts to clang via VariadicDynCastAllOfMatcher? ( I guess it has the corresponding AST node type, although I did not check it yet. ) Even though one can check for c style casts like I did, but a similar matcher to other casts would be cleaner.<br>

<br>Thanks,<br>Gábor<br></span><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote">On 14 September 2012 13:24, Daniel Jasper <span dir="ltr"><<a href="mailto:djasper@google.com" target="_blank">djasper@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Cool.<div><br></div><div>To get started: To match throws declarations, you will need to create a:<div><br></div><div><div>const internal::VariadicDynCastAllOfMatcher<</div><div>  Stmt,</div><div>  CXXThrowsExpr> throwsExpr;</div>


</div>
<div><br></div><div>In include/clang/ASTMatchers/ASTMatchers.h.</div><div>And a comment and tests, if you want it to get into the upstream repository ;-).</div><div><br></div><div>When you write me an email, it might be a good idea to include <a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a>. That way, people might reply quicker if I am not available.</div>


<div><br>Cheers,<br>Daniel</div>
</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Sep 14, 2012 at 1:15 PM, Gábor Horváth <span dir="ltr"><<a href="mailto:xazax.hun@gmail.com" target="_blank">xazax.hun@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<br><br>I'm xazax from irc, thanks for assisting me. I'm planning to dig into the source code this weekend, if I have some questions I will drop you a mail, or contact you on irc.<br>


<br>Thanks,<br>Gábor Horváth<br>
<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br></div>