Use better name.
This commit is contained in:
parent
5d88b742d2
commit
e92c7da7c3
@ -7,7 +7,6 @@
|
||||
#include "IncrementalParser.h"
|
||||
#include "ASTDumper.h"
|
||||
#include "ASTNodeEraser.h"
|
||||
#include "ASTNullDerefProtection.h"
|
||||
#include "AutoSynthesizer.h"
|
||||
#include "DeclCollector.h"
|
||||
#include "DeclExtractor.h"
|
||||
@ -79,11 +78,10 @@ namespace cling {
|
||||
m_ASTTransformers.push_back(new ASTDumper());
|
||||
m_ASTTransformers.push_back(new DeclExtractor(TheSema));
|
||||
m_ASTTransformers.push_back(new ReturnSynthesizer(TheSema));
|
||||
m_ASTTransformers.push_back(new ASTNullDerefProtection(TheSema));
|
||||
m_ASTTransformers.push_back(new NullDerefProtectionTransformer(TheSema));
|
||||
|
||||
// Register the IR Transformers
|
||||
m_IRTransformers.push_back(new IRDumper());
|
||||
//m_IRTransformers.push_back(new NullDerefProtectionTransformer(TheSema));
|
||||
}
|
||||
|
||||
void IncrementalParser::Initialize() {
|
||||
|
@ -5,7 +5,7 @@
|
||||
// author: Vassil Vassilev <vasil.georgiev.vasilev@cern.ch>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#include "ASTNullDerefProtection.h"
|
||||
#include "NullDerefProtectionTransformer.h"
|
||||
|
||||
#include "cling/Interpreter/Transaction.h"
|
||||
#include "cling/Utils/AST.h"
|
||||
@ -23,11 +23,11 @@
|
||||
using namespace clang;
|
||||
|
||||
namespace cling {
|
||||
ASTNullDerefProtection::ASTNullDerefProtection(clang::Sema* S)
|
||||
NullDerefProtectionTransformer::NullDerefProtectionTransformer(clang::Sema* S)
|
||||
: TransactionTransformer(S) {
|
||||
}
|
||||
|
||||
ASTNullDerefProtection::~ASTNullDerefProtection()
|
||||
NullDerefProtectionTransformer::~NullDerefProtectionTransformer()
|
||||
{ }
|
||||
|
||||
// Copied from clad - the clang/opencl autodiff project
|
||||
@ -283,7 +283,7 @@ namespace cling {
|
||||
}
|
||||
};
|
||||
|
||||
void ASTNullDerefProtection::Transform() {
|
||||
void NullDerefProtectionTransformer::Transform() {
|
||||
FunctionDecl* FD = getTransaction()->getWrapperFD();
|
||||
if (!FD)
|
||||
return;
|
@ -16,7 +16,7 @@ namespace clang {
|
||||
|
||||
namespace cling {
|
||||
|
||||
class ASTNullDerefProtection : public TransactionTransformer {
|
||||
class NullDerefProtectionTransformer : public TransactionTransformer {
|
||||
|
||||
|
||||
public:
|
||||
@ -24,9 +24,9 @@ namespace cling {
|
||||
///
|
||||
///\param[in] S - The semantic analysis object.
|
||||
///
|
||||
ASTNullDerefProtection(clang::Sema* S);
|
||||
NullDerefProtectionTransformer(clang::Sema* S);
|
||||
|
||||
virtual ~ASTNullDerefProtection();
|
||||
virtual ~NullDerefProtectionTransformer();
|
||||
virtual void Transform();
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user