diff options
| author | Sean Callanan <scallanan@apple.com> | 2015-04-28 21:18:01 +0000 |
|---|---|---|
| committer | Sean Callanan <scallanan@apple.com> | 2015-04-28 21:18:01 +0000 |
| commit | 9a89d6a1853b25717b786676229d77ae39c3f05e (patch) | |
| tree | 42d9a3d92df4377dc630cb652c424f60b25fe910 /clang | |
| parent | 9a99aa75d70d86b74d07a3d6c01e3374ce74e2c0 (diff) | |
| download | bcm5719-llvm-9a89d6a1853b25717b786676229d77ae39c3f05e.tar.gz bcm5719-llvm-9a89d6a1853b25717b786676229d77ae39c3f05e.zip | |
Attempt to fix the MSVC build by making ExprIterator
inherit correctly.
llvm-svn: 236035
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/include/clang/AST/Stmt.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/clang/include/clang/AST/Stmt.h b/clang/include/clang/AST/Stmt.h index 445cd849fcb..ce9449dc46f 100644 --- a/clang/include/clang/AST/Stmt.h +++ b/clang/include/clang/AST/Stmt.h @@ -58,7 +58,9 @@ namespace clang { class Stmt; class Expr; - class ExprIterator { + class ExprIterator : public std::iterator<std::forward_iterator_tag, + Expr *&, ptrdiff_t, + Expr *&, Expr *&> { Stmt** I; public: ExprIterator(Stmt** i) : I(i) {} @@ -77,7 +79,10 @@ namespace clang { bool operator>=(const ExprIterator& R) const { return I >= R.I; } }; - class ConstExprIterator { + class ConstExprIterator : public std::iterator<std::forward_iterator_tag, + const Expr *&, ptrdiff_t, + const Expr *&, + const Expr *&> { const Stmt * const *I; public: ConstExprIterator(const Stmt * const *i) : I(i) {} |

