Remove default values in IncrementalParser functions
This commit is contained in:
parent
b0bdcf4c56
commit
8f51dd1617
@ -202,7 +202,7 @@ namespace cling {
|
||||
|
||||
void
|
||||
IncrementalParser::Initialize(llvm::SmallVectorImpl<ParseResultTransaction>&
|
||||
result, bool childInterp) {
|
||||
result, bool isChildInterpreter) {
|
||||
m_TransactionPool.reset(new TransactionPool(getCI()->getSema()));
|
||||
if (hasCodeGenerator()) {
|
||||
getCodeGenerator()->Initialize(getCI()->getASTContext());
|
||||
@ -249,7 +249,7 @@ namespace cling {
|
||||
|
||||
// If I belong to the parent Interpreter, only then do
|
||||
// the #include <new>
|
||||
if (!childInterp && m_CI->getLangOpts().CPlusPlus) {
|
||||
if (!isChildInterpreter && m_CI->getLangOpts().CPlusPlus) {
|
||||
// <new> is needed by the ValuePrinter so it's a good thing to include it.
|
||||
// We need to include it to determine the version number of the standard
|
||||
// library implementation.
|
||||
|
@ -102,11 +102,11 @@ namespace cling {
|
||||
typedef llvm::PointerIntPair<Transaction*, 2, EParseResult>
|
||||
ParseResultTransaction;
|
||||
IncrementalParser(Interpreter* interp, int argc, const char* const *argv,
|
||||
const char* llvmdir, bool isChildInterpreter = false);
|
||||
const char* llvmdir, bool isChildInterpreter);
|
||||
~IncrementalParser();
|
||||
|
||||
void Initialize(llvm::SmallVectorImpl<ParseResultTransaction>& result,
|
||||
bool childInterp = false);
|
||||
bool isChildInterpreter);
|
||||
clang::CompilerInstance* getCI() const { return m_CI.get(); }
|
||||
clang::Parser* getParser() const { return m_Parser.get(); }
|
||||
clang::CodeGenerator* getCodeGenerator() const { return m_CodeGen.get(); }
|
||||
|
@ -203,7 +203,7 @@ namespace cling {
|
||||
|
||||
llvm::SmallVector<IncrementalParser::ParseResultTransaction, 2>
|
||||
IncrParserTransactions;
|
||||
m_IncrParser->Initialize(IncrParserTransactions);
|
||||
m_IncrParser->Initialize(IncrParserTransactions, isChildInterp);
|
||||
|
||||
handleFrontendOptions();
|
||||
|
||||
@ -232,7 +232,7 @@ namespace cling {
|
||||
///
|
||||
Interpreter::Interpreter(Interpreter &parentInterpreter, int argc, const char* const *argv,
|
||||
const char* llvmdir /*= 0*/, bool noRuntime) :
|
||||
Interpreter(argc, argv, llvmdir, noRuntime, /* isChildInterp = true */ true) {
|
||||
Interpreter(argc, argv, llvmdir, noRuntime, /* isChildInterp */ true) {
|
||||
// Give my IncrementalExecutor a pointer to the Incremental executor
|
||||
// of the parent Interpreter.
|
||||
m_Executor->setExternalIncrementalExecutor(parentInterpreter.m_Executor.get());
|
||||
|
Loading…
x
Reference in New Issue
Block a user