cling/lib/Interpreter/RequiredSymbols.cpp
Axel Naumann 789648df2d Add switch for lookup diags; enable it for gDebug>5 (ROOT-6070, ROOT-6044).
Use enum to avoid ambiguities between consecutive bollean args.
Use less default args to avoid Type* -> bool conversion.
2014-02-19 08:39:58 +01:00

42 lines
1.5 KiB
C++

//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// author: Axel Naumann <axel@cern.ch>
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser General Public License. See
// LICENSE.TXT for details.
//------------------------------------------------------------------------------
#include "cling/Interpreter/Interpreter.h"
#include "cling/Interpreter/CValuePrinter.h"
#include "cling/Interpreter/DynamicExprInfo.h"
#include "cling/Interpreter/InterpreterCallbacks.h"
#include "cling/Interpreter/LookupHelper.h"
#include "cling/Interpreter/ValuePrinter.h"
#include "cling/Interpreter/ValuePrinterInfo.h"
#include "clang/AST/Type.h"
#include "llvm/Support/raw_ostream.h"
namespace cling {
namespace internal {
void symbol_requester() {
const char* const argv[] = {"libcling__symbol_requester", 0};
Interpreter I(1, argv);
ValuePrinterInfo VPI(0, 0); // asserts, but we don't call.
valuePrinterInternal::printValue_Default(0, VPI);
cling_PrintValue(0, 0, 0);
valuePrinterInternal::flushToStream(llvm::outs(), "");
LookupHelper h(0,0);
h.findType("", LookupHelper::NoDiagnostics);
h.findScope("", LookupHelper::NoDiagnostics);
h.findFunctionProto(0, "", "", LookupHelper::NoDiagnostics);
h.findFunctionArgs(0, "", "", LookupHelper::NoDiagnostics);
runtime::internal::DynamicExprInfo DEI(0,0,false);
DEI.getExpr();
InterpreterCallbacks cb(0);
}
}
}