diff options
author | Ben Langmuir <blangmuir@apple.com> | 2014-06-24 21:08:13 +0000 |
---|---|---|
committer | Ben Langmuir <blangmuir@apple.com> | 2014-06-24 21:08:13 +0000 |
commit | 93d4222c228925c5c97d0e0190d7e614db1778f3 (patch) | |
tree | 01ac22738110b4c8318a70ce130e7e013c38a274 /include | |
parent | c16ee52c603fbc52fff5fc049b564a4e01e0e95f (diff) | |
download | clang-93d4222c228925c5c97d0e0190d7e614db1778f3.tar.gz clang-93d4222c228925c5c97d0e0190d7e614db1778f3.tar.bz2 clang-93d4222c228925c5c97d0e0190d7e614db1778f3.tar.xz |
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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211633 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/Basic/VirtualFileSystem.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/clang/Basic/VirtualFileSystem.h b/include/clang/Basic/VirtualFileSystem.h index 8c83012ebd..3b43d1e75f 100644 --- a/include/clang/Basic/VirtualFileSystem.h +++ b/include/clang/Basic/VirtualFileSystem.h @@ -147,15 +147,6 @@ public: bool operator!=(const directory_iterator &RHS) const { return !(*this == RHS); } - - /// For testing only. Directory iteration does not always succeed! - directory_iterator &operator++() { - std::error_code EC; - increment(EC); - if (EC) - llvm::report_fatal_error("directory iteration failed!"); - return *this; - } }; /// \brief The virtual file system interface. |