Added the hasLoopVariable sub-matcher for forRangeStmt.

Press ? to show keyboard shortcuts.
Committed
alexfhFeb 5 2014, 8:35 AM
Reviewer
klimek
Differential Revision
D2702: Added the hasLoopVariable sub-matcher for forRangeStmt.
Parents
rL200849: AVX-512: optimized icmp -> sext -> icmp pattern
Branches
Unknown
Tags
Unknown
Description

Added the hasLoopVariable sub-matcher for forRangeStmt.

Summary:
This sub-matcher makes it possible to access directly the range-based for
loop variable: forRangeStmt(hasLoopVariable(anything()).bind(...)).
I've tried to re-generate the docs, but the diffs seem to include much more than
this change could cause, so I'd better leave docs update to someone who knows
the intended changes in the contents better.

Reviewers: klimek

Reviewed By: klimek

CC: cfe-commits, klimek

Differential Revision: http://llvm-reviews.chandlerc.com/D2702

rL200850

cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h

Loading...

cfe/trunk/unittests/ASTMatchers/ASTMatchersTest.cpp

Loading...

Add Comment