05ba8a3a07
git-svn-id: http://root.cern.ch/svn/root/trunk@45844 27541ba8-7e3a-0410-8455-c3a389f83636
40 lines
852 B
C++
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
|