]> granicus.if.org Git - clang/commitdiff
iterator.h is no more. Be standards compliant.
authorGabor Greif <ggreif@gmail.com>
Thu, 27 Aug 2009 06:49:21 +0000 (06:49 +0000)
committerGabor Greif <ggreif@gmail.com>
Thu, 27 Aug 2009 06:49:21 +0000 (06:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80225 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Stmt.h
include/clang/AST/StmtIterator.h
include/clang/Rewrite/RewriteRope.h

index 3b790caf758e2ecd37652673b9bcd987121f70f9..f34776373b2c6c478e0e2685d87046905256fdca 100644 (file)
@@ -21,7 +21,6 @@
 #include "clang/AST/StmtIterator.h"
 #include "clang/AST/DeclGroup.h"
 #include "llvm/ADT/SmallVector.h"
-#include "llvm/ADT/iterator.h"
 #include "clang/AST/ASTContext.h"
 #include <string>
 using llvm::dyn_cast_or_null;
index 35bd5ada0256cdbd9ccd0f8ce76c2f76420fa530..2a4adc6f7939b3f76197f5ce771e8348c5f5ca53 100644 (file)
@@ -14,9 +14,9 @@
 #ifndef LLVM_CLANG_AST_STMT_ITR_H
 #define LLVM_CLANG_AST_STMT_ITR_H
 
-#include "llvm/ADT/iterator.h"
 #include "llvm/Support/DataTypes.h"
 #include <cassert>
+#include <iterator>
 
 namespace clang {
 
index 7faa451290e402ca13153ab18e9b9d7e3ce8a781..fa5464bf3e95161177738ef90ed5cf98470cd167 100644 (file)
@@ -14,9 +14,9 @@
 #ifndef LLVM_CLANG_REWRITEROPE_H
 #define LLVM_CLANG_REWRITEROPE_H
 
-#include "llvm/ADT/iterator.h"
 #include <cstring>
 #include <cassert>
+#include <iterator>
 
 namespace clang {
   //===--------------------------------------------------------------------===//
@@ -102,7 +102,7 @@ namespace clang {
   /// in a RopePiece, then iterates over RopePiece's in a RopePieceBTreeLeaf,
   /// then iterates over RopePieceBTreeLeaf's in a RopePieceBTree.
   class RopePieceBTreeIterator :
-      public forward_iterator<const char, ptrdiff_t> {
+    public std::iterator<std::forward_iterator_tag, const char, ptrdiff_t> {
     /// CurNode - The current B+Tree node that we are inspecting.
     const void /*RopePieceBTreeLeaf*/ *CurNode;
     /// CurPiece - The current RopePiece in the B+Tree node that we're