diff options
Diffstat (limited to 'clang/lib/AST/ExprCXX.cpp')
-rw-r--r-- | clang/lib/AST/ExprCXX.cpp | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/clang/lib/AST/ExprCXX.cpp b/clang/lib/AST/ExprCXX.cpp deleted file mode 100644 index 323fdd6..0000000 --- a/clang/lib/AST/ExprCXX.cpp +++ /dev/null @@ -1,55 +0,0 @@ -//===--- ExprCXX.cpp - (C++) Expression AST Node Implementation -----------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This file implements the subclesses of Expr class declared in ExprCXX.h -// -//===----------------------------------------------------------------------===// - -#include "clang/AST/ExprCXX.h" -using namespace clang; - -//===----------------------------------------------------------------------===// -// Child Iterators for iterating over subexpressions/substatements -//===----------------------------------------------------------------------===// - - -// CXXCastExpr -Stmt::child_iterator CXXCastExpr::child_begin() { - return reinterpret_cast<Stmt**>(&Op); -} -Stmt::child_iterator CXXCastExpr::child_end() { - return reinterpret_cast<Stmt**>(&Op)+1; -} - -// CXXBoolLiteralExpr -Stmt::child_iterator CXXBoolLiteralExpr::child_begin() { - return child_iterator(); -} -Stmt::child_iterator CXXBoolLiteralExpr::child_end() { - return child_iterator(); -} - -// CXXThrowExpr -Stmt::child_iterator CXXThrowExpr::child_begin() { - return reinterpret_cast<Stmt**>(&Op); -} -Stmt::child_iterator CXXThrowExpr::child_end() { - // If Op is 0, we are processing throw; which has no children. - if (Op == 0) - return reinterpret_cast<Stmt**>(&Op)+0; - return reinterpret_cast<Stmt**>(&Op)+1; -} - -// CXXDefaultArgExpr -Stmt::child_iterator CXXDefaultArgExpr::child_begin() { - return child_iterator(); -} -Stmt::child_iterator CXXDefaultArgExpr::child_end() { - return child_iterator(); -} |