Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 1 | //===--- StmtVisitor.cpp - Visitor for Stmt subclasses --------------------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file was developed by Chris Lattner 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 StmtVisitor class. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #include "clang/AST/StmtVisitor.h" |
| 15 | #include "clang/AST/ExprCXX.h" |
| 16 | using namespace clang; |
| 17 | |
| 18 | StmtVisitor::~StmtVisitor() { |
| 19 | // Out-of-line virtual dtor. |
| 20 | } |
| 21 | |
| 22 | // Implement all of the delegation visitor methods. |
| 23 | #define STMT(N, FROM, TO) \ |
| 24 | void StmtVisitor::Visit##FROM(FROM *Node) { Visit##TO(Node); } |
| 25 | #include "clang/AST/StmtNodes.def" |
| 26 | |