Fix test issues from r211623 and remove test-only API
authorBen Langmuir <blangmuir@apple.com>
Tue, 24 Jun 2014 21:08:13 +0000 (21:08 +0000)
committerBen Langmuir <blangmuir@apple.com>
Tue, 24 Jun 2014 21:08:13 +0000 (21:08 +0000)
commitefb8b6019e27efd55dd955d3d373d749fbd768d3
treec625ace4814153c65b0c006d5a303f03c3bee008
parent0e928859430c7e15f3f9a3ceee9bf40a74b7e512
Fix test issues from r211623 and remove test-only API

1) missing iterator bits needed by libstdc++4.7
Using find_if was convenient, but since operator++ wasn't a good
interface anyway, I just replaced with a range-based for loop and
removed operator++ from the directory_iterator class.

2) stop relying on order of iterating real files

llvm-svn: 211633
clang/include/clang/Basic/VirtualFileSystem.h
clang/unittests/Basic/VirtualFileSystemTest.cpp