Properly identify 'this' as range-based for container
authorEdwin Vane <edwin.vane@intel.com>
Mon, 4 Mar 2013 16:35:04 +0000 (16:35 +0000)
committerEdwin Vane <edwin.vane@intel.com>
Mon, 4 Mar 2013 16:35:04 +0000 (16:35 +0000)
commit2f43085b469c739ecd0a98c720aba254ceda018c
tree6e595a90cbfb8fc193becf12f870517915c36e35
parent973c9420e14ab4aa815bdebc33451ae88395c6e8
Properly identify 'this' as range-based for container

The Loop-Convert transform was mistransforming loops using 'this' implicitly.
Fixed and added tests.

Fixes PR15411.

llvm-svn: 176436
clang-tools-extra/cpp11-migrate/LoopConvert/LoopActions.cpp
clang-tools-extra/test/cpp11-migrate/LoopConvert/iterator.cpp