9#ifndef LLDB_INTERPRETER_OPTIONVALUEFILESPEC_H
10#define LLDB_INTERPRETER_OPTIONVALUEFILESPEC_H
16#include "llvm/Support/Chrono.h"
27 const FileSpec &default_value,
bool resolve =
true);
36 uint32_t dump_mask)
override;
66 if (set_value_was_set)
A class that implements CRTP-based "virtual constructor" idiom.
"lldb/Utility/ArgCompletionRequest.h"
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
size_t GetPath(char *path, size_t max_path_length, bool denormalize=true) const
Extract the full path to the file.
const FileSpec & GetCurrentValue() const
void SetCompletionMask(uint32_t mask)
FileSpec & GetCurrentValue()
OptionValue::Type GetType() const override
~OptionValueFileSpec() override=default
llvm::sys::TimePoint m_data_mod_time
void AutoComplete(CommandInterpreter &interpreter, CompletionRequest &request) override
Status SetValueFromString(llvm::StringRef value, VarSetOperationType op=eVarSetOperationAssign) override
uint32_t m_completion_mask
void DumpValue(const ExecutionContext *exe_ctx, Stream &strm, uint32_t dump_mask) override
const FileSpec & GetDefaultValue() const
void SetDefaultValue(const FileSpec &value)
lldb::DataBufferSP m_data_sp
const lldb::DataBufferSP & GetFileContents()
void SetCurrentValue(const FileSpec &value, bool set_value_was_set)
llvm::json::Value ToJSON(const ExecutionContext *exe_ctx) override
A stream class that can stream formatted output to a file.
A class that represents a running process on the host machine.
VarSetOperationType
Settable state variable types.
std::shared_ptr< lldb_private::DataBuffer > DataBufferSP