blob: 74d471edde4cc3ad98037d7e364c2f6adf01c56f [file] [log] [blame]
Ted Kremenekfc7b6f72007-08-24 20:21:10 +00001//===--- ExprCXX.cpp - (C++) Expression AST Node Implementation -----------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file was developed by Ted Kremenek and is distributed under
6// the University of Illinois Open Source License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file implements the subclesses of Expr class declared in ExprCXX.h
11//
12//===----------------------------------------------------------------------===//
13
14#include "clang/AST/ExprCXX.h"
15using namespace clang;
16
17//===----------------------------------------------------------------------===//
18// Child Iterators for iterating over subexpressions/substatements
19//===----------------------------------------------------------------------===//
20
21
22// CXXCastExpr
23Stmt::child_iterator CXXCastExpr::child_begin() {
24 return reinterpret_cast<Stmt**>(&Op);
25}
26
27Stmt::child_iterator CXXCastExpr::child_end() {
Ted Kremenek4f398252007-10-18 00:24:38 +000028 return ++child_begin();
Ted Kremenekfc7b6f72007-08-24 20:21:10 +000029}
30
31// CXXBoolLiteralExpr
32Stmt::child_iterator CXXBoolLiteralExpr::child_begin() { return NULL; }
33Stmt::child_iterator CXXBoolLiteralExpr::child_end() { return NULL; }