4fd8ccc00d
git-svn-id: http://root.cern.ch/svn/root/trunk@46826 27541ba8-7e3a-0410-8455-c3a389f83636
27 lines
742 B
C++
27 lines
742 B
C++
//------------------------------------------------------------------------------
|
|
// CLING - the C++ LLVM-based InterpreterG :)
|
|
// version: $Id$
|
|
// author: Vassil Vassilev <vvasilev@cern.ch>
|
|
//------------------------------------------------------------------------------
|
|
|
|
#include "TransactionTransformer.h"
|
|
|
|
#include "clang/Sema/Sema.h"
|
|
|
|
namespace cling {
|
|
|
|
// pin the vtable here since there is no point to create dedicated to that
|
|
// cpp file.
|
|
TransactionTransformer::~TransactionTransformer() {}
|
|
|
|
bool TransactionTransformer::TransformTransaction(Transaction& T) {
|
|
m_Transaction = &T;
|
|
Transform();
|
|
|
|
if (!m_Sema)
|
|
return true;
|
|
|
|
return !m_Sema->getDiagnostics().hasErrorOccurred();
|
|
}
|
|
} // end namespace cling
|