This is an archive of the discontinued LLVM Phabricator instance.

Added the hasLoopVariable sub-matcher for forRangeStmt.
ClosedPublic

Authored by alexfh on Feb 5 2014, 8:25 AM.

Details

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.

Diff Detail

Event Timeline

klimek accepted this revision.Feb 5 2014, 8:32 AM

lg

include/clang/ASTMatchers/ASTMatchers.h
886

s/hasLoopVarStmt/hasLoopVariable/

alexfh closed this revision.Feb 5 2014, 8:41 AM