1 //===--- ExprCXX.cpp - (C++) Expression AST Node Implementation -----------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file implements the subclesses of Expr class declared in ExprCXX.h
12 //===----------------------------------------------------------------------===//
14 #include "clang/AST/ExprCXX.h"
15 using namespace clang;
17 //===----------------------------------------------------------------------===//
18 // Child Iterators for iterating over subexpressions/substatements
19 //===----------------------------------------------------------------------===//
23 Stmt::child_iterator CXXCastExpr::child_begin() {
24 return reinterpret_cast<Stmt**>(&Op);
27 Stmt::child_iterator CXXCastExpr::child_end() {
28 return reinterpret_cast<Stmt**>(&Op)+1;
32 Stmt::child_iterator CXXBoolLiteralExpr::child_begin() {
33 return child_iterator();
35 Stmt::child_iterator CXXBoolLiteralExpr::child_end() {
36 return child_iterator();