9#ifndef LLDB_SOURCE_PLUGINS_REPL_CLANG_CLANGREPL_H
10#define LLDB_SOURCE_PLUGINS_REPL_CLANG_CLANGREPL_H
17class ClangREPL :
public llvm::RTTIExtends<ClangREPL, REPL> {
32 const char *repl_options);
47 int tab_size)
override;
static llvm::raw_ostream & error(Stream &strm)
Implements a Clang-based REPL for C languages on top of LLDB's REPL framework.
lldb::LanguageType GetLanguage() override
const char * GetAutoIndentCharacters() override
lldb_private::RegularExpression m_implicit_expr_result_regex
A regex matching the implicitly created LLDB result variables.
static llvm::StringRef GetPluginNameStatic()
static lldb::REPLSP CreateInstance(Status &error, lldb::LanguageType language, Debugger *debugger, Target *target, const char *repl_options)
Status DoInitialization() override
void CompleteCode(const std::string ¤t_code, CompletionRequest &request) override
llvm::StringRef GetSourceFileBasename() override
lldb::offset_t GetDesiredIndentation(const StringList &lines, int cursor_position, int tab_size) override
bool SourceIsComplete(const std::string &source) override
bool PrintOneVariable(Debugger &debugger, lldb::StreamFileSP &output_sp, lldb::ValueObjectSP &valobj_sp, ExpressionVariable *var=nullptr) override
lldb::LanguageType m_language
The specific C language of this REPL.
"lldb/Utility/ArgCompletionRequest.h"
A class to manage flag bits.
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::ValueObject > ValueObjectSP
LanguageType
Programming language type.
std::shared_ptr< lldb_private::StreamFile > StreamFileSP
std::shared_ptr< lldb_private::REPL > REPLSP