[clang-tidy] Prepare modernize-loop-convert for upcoming changes in D22566
authorMartin Bohme <mboehme@google.com>
Mon, 1 Aug 2016 11:29:17 +0000 (11:29 +0000)
committerMartin Bohme <mboehme@google.com>
Mon, 1 Aug 2016 11:29:17 +0000 (11:29 +0000)
commitd10be623838db6d82c7ede9ea5d4cf267ff2dc8f
treeef5e6e9750bfbc2ba2e1379d443376001b39794b
parent0b9b81412fd66c32c5cd352bdfff6bbc0d3e8620
[clang-tidy] Prepare modernize-loop-convert for upcoming changes in D22566

Summary:
D22566 will change RecursiveASTVisitor so that it descends into the initialization expressions for lambda captures.

modernize-loop-convert needs to be prepared for this so that it does not interpret these initialization expressions as invalid uses of the loop variable. The change has no ill effects without D22566 in place, i.e. the change does not depend on D22566.

Reviewers: klimek

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D22903

llvm-svn: 277339
clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.cpp