#include "ClangREPL.h"
#include "lldb/Core/Debugger.h"
#include "lldb/Core/PluginManager.h"
#include "lldb/Expression/ExpressionVariable.h"
usingnamespacelldb_private;
LLDB_PLUGIN_DEFINE(…)
char ClangREPL::ID;
ClangREPL::ClangREPL(lldb::LanguageType language, Target &target)
: … { … }
ClangREPL::~ClangREPL() = default;
void ClangREPL::Initialize() { … }
void ClangREPL::Terminate() { … }
lldb::REPLSP ClangREPL::CreateInstance(Status &error,
lldb::LanguageType language,
Debugger *debugger, Target *target,
const char *repl_options) { … }
Status ClangREPL::DoInitialization() { … }
llvm::StringRef ClangREPL::GetSourceFileBasename() { … }
const char *ClangREPL::GetAutoIndentCharacters() { … }
bool ClangREPL::SourceIsComplete(const std::string &source) { … }
lldb::offset_t ClangREPL::GetDesiredIndentation(const StringList &lines,
int cursor_position,
int tab_size) { … }
lldb::LanguageType ClangREPL::GetLanguage() { … }
bool ClangREPL::PrintOneVariable(Debugger &debugger,
lldb::StreamFileSP &output_sp,
lldb::ValueObjectSP &valobj_sp,
ExpressionVariable *var) { … }
void ClangREPL::CompleteCode(const std::string ¤t_code,
CompletionRequest &request) { … }