cling/lib/Interpreter/ASTDumper.h
2012-09-05 09:37:39 +00:00

40 lines
852 B
C++

//--------------------------------------------------------------------*- C++ -*-
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id$
// author: Vassil Vassilev <vasil.georgiev.vasilev@cern.ch>
//------------------------------------------------------------------------------
#ifndef CLING_AST_DUMPER_H
#define CLING_AST_DUMPER_H
#include "TransactionTransformer.h"
namespace clang {
class Decl;
}
namespace cling {
class Transaction;
// TODO : This is not really a transformer. Factor out.
class ASTDumper : public TransactionTransformer {
private:
bool m_Dump;
public:
ASTDumper(bool Dump = false)
: TransactionTransformer(0), m_Dump(Dump) { }
virtual ~ASTDumper();
virtual void Transform();
private:
void printDecl(clang::Decl* D);
};
} // namespace cling
#endif // CLING_AST_DUMPER_H