<div>Thanks for the patches. A few comments:</div><div><br></div>loop-matchers.patch:<div><div> </div><div>  +/// Example: </div><div>  +///     forSmt(hasIncrement(unaryOperator(hasOperatorName("++"))))</div></div>
<div><br></div><div>Typo: Should be forStmt. Same in boths comments.</div><div><br></div><div><div>  +AST_MATCHER_P(clang::ForStmt, hasIncrement, internal::Matcher<clang::Stmt>,</div><div>  +              InnerMatcher) {</div>
</div><div><br></div><div>Remove all the "clang::" (here and everywhere else).</div><div><br></div><div><div>  +TEST(For, NegativeForLoopInternals) {</div><div>  +  EXPECT_FALSE(matches("void f(){ for (int i = 0; ; ++i); }",</div>
</div><div><br></div><div>We prefer "EXPECT_TRUE(notMatches(". I think "EXPECT_FALSE(matches(" will always pass if there are syntax errors.</div><div><br></div><div><br></div><div>isInteger.patch:</div>
<div>Use EXPECT_TRUE(notMatches(.</div><div><br></div><div><br></div><div>allof.patch:</div><div><br></div><div><div>  +TEST(AllOF, CorrectOverloads) {</div></div><div><br></div><div>nit: AllOf</div><div>also: The test name could contain a bit more information. What does it actually test?</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 11, 2012 at 1:11 AM, Sam Panzer <span dir="ltr"><<a href="mailto:panzer@google.com" target="_blank">panzer@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>There are three patches attached here. One adds matchers for the various parts of a for loop (initializer, condition, increment), as well as extending the hasBody matcher to work for while and do-while loops. The second patch adds an isInteger matcher for types.</div>

<div>The third patch fixes a bug in allOf, where a few of the name chages (AllOf --> allOf) had been missed.</div><div><br></div><div>All matchers come with unit tests.</div><div><br></div><div>Thoughts?</div><span class="HOEnZb"><font color="#888888"><div>
-Sam</div>
</font></span><br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br></div>