Go to the documentation of this file.
9 #ifndef LLDB_EXPRESSION_REPL_H
10 #define LLDB_EXPRESSION_REPL_H
57 const char *repl_options);
101 int cursor_position)
override;
129 lldb::StreamFileSP &output_sp,
130 lldb::ValueObjectSP &valobj_sp,
161 #endif // LLDB_EXPRESSION_REPL_H
bool m_dedicated_repl_mode
void SetEvaluateOptions(const EvaluateExpressionOptions &options)
OptionGroupFormat m_format_options
lldb::IOHandlerSP GetIOHandler()
int IOHandlerFixIndentation(IOHandler &io_handler, const StringList &lines, int cursor_position) override
Called when a new line is created or one of an identified set of indentation characters is typed.
EvaluateExpressionOptions m_expr_options
virtual const char * GetAutoIndentCharacters()=0
std::string m_current_indent_str
LanguageType
Programming language type.
void IOHandlerComplete(IOHandler &io_handler, CompletionRequest &request) override
ConstString IOHandlerGetControlSequence(char ch) override
bool m_enable_auto_indent
const char * IOHandlerGetHelpPrologue() override
std::string GetSourcePath()
void SetCompilerOptions(const char *options)
void IOHandlerInputInterrupted(IOHandler &io_handler, std::string &line) override
lldb::IOHandlerSP m_io_handler_sp
OptionGroupValueObjectDisplay m_varobj_options
static lldb::REPLSP Create(Status &Status, lldb::LanguageType language, Debugger *debugger, Target *target, const char *repl_options)
Get a REPL with an existing target (or, failing that, a debugger to use), and (optional) extra argume...
REPL(LLVMCastKind kind, Target &target)
virtual bool PrintOneVariable(Debugger &debugger, lldb::StreamFileSP &output_sp, lldb::ValueObjectSP &valobj_sp, ExpressionVariable *var=nullptr)=0
string(SUBSTRING ${p} 10 -1 pStripped) if($
virtual lldb::offset_t GetDesiredIndentation(const StringList &lines, int cursor_position, int tab_size)=0
void IOHandlerInputComplete(IOHandler &io_handler, std::string &line) override
Called when a line or lines have been retrieved.
virtual ConstString GetSourceFileBasename()=0
virtual lldb::LanguageType GetLanguage()=0
virtual bool SourceIsComplete(const std::string &source)=0
bool IOHandlerInterrupt(IOHandler &io_handler) override
void IOHandlerActivated(IOHandler &io_handler, bool interactive) override
static int CalculateActualIndentation(const StringList &lines)
virtual void CompleteCode(const std::string ¤t_code, CompletionRequest &request)=0
void SetFormatOptions(const OptionGroupFormat &options)
uint32_t m_current_indent_level
A delegate class for use with IOHandler subclasses.
A class that represents a running process on the host machine.
const char * IOHandlerGetFixIndentationCharacters() override
LLVMCastKind getKind() const
void SetValueObjectDisplayOptions(const OptionGroupValueObjectDisplay &options)
bool IOHandlerIsInputComplete(IOHandler &io_handler, StringList &lines) override
Called to determine whether typing enter after the last line in lines should end input.
virtual Status DoInitialization()=0
std::string m_repl_source_path
const char * IOHandlerGetCommandPrefix() override
std::string m_compiler_options