diff options
Diffstat (limited to 'include/lldb/Interpreter/OptionValueFileSpecList.h')
-rw-r--r-- | include/lldb/Interpreter/OptionValueFileSpecList.h | 120 |
1 files changed, 45 insertions, 75 deletions
diff --git a/include/lldb/Interpreter/OptionValueFileSpecList.h b/include/lldb/Interpreter/OptionValueFileSpecList.h index 205132358024..1e42362c9163 100644 --- a/include/lldb/Interpreter/OptionValueFileSpecList.h +++ b/include/lldb/Interpreter/OptionValueFileSpecList.h @@ -19,83 +19,53 @@ namespace lldb_private { -class OptionValueFileSpecList : public OptionValue -{ +class OptionValueFileSpecList : public OptionValue { public: - OptionValueFileSpecList () : - OptionValue(), - m_current_value () - { - } - - OptionValueFileSpecList (const FileSpecList ¤t_value) : - OptionValue(), - m_current_value (current_value) - { - } - - ~OptionValueFileSpecList() override - { - } - - //--------------------------------------------------------------------- - // Virtual subclass pure virtual overrides - //--------------------------------------------------------------------- - - OptionValue::Type - GetType() const override - { - return eTypeFileSpecList; - } - - void - DumpValue(const ExecutionContext *exe_ctx, Stream &strm, uint32_t dump_mask) override; - - Error - SetValueFromString(llvm::StringRef value, - VarSetOperationType op = eVarSetOperationAssign) override; - - bool - Clear() override - { - m_current_value.Clear(); - m_value_was_set = false; - return true; - } - - lldb::OptionValueSP - DeepCopy() const override; - - bool - IsAggregateValue() const override - { - return true; - } - - //--------------------------------------------------------------------- - // Subclass specific functions - //--------------------------------------------------------------------- - - FileSpecList & - GetCurrentValue() - { - return m_current_value; - } - - const FileSpecList & - GetCurrentValue() const - { - return m_current_value; - } - - void - SetCurrentValue (const FileSpecList &value) - { - m_current_value = value; - } - + OptionValueFileSpecList() : OptionValue(), m_current_value() {} + + OptionValueFileSpecList(const FileSpecList ¤t_value) + : OptionValue(), m_current_value(current_value) {} + + ~OptionValueFileSpecList() override {} + + //--------------------------------------------------------------------- + // Virtual subclass pure virtual overrides + //--------------------------------------------------------------------- + + OptionValue::Type GetType() const override { return eTypeFileSpecList; } + + void DumpValue(const ExecutionContext *exe_ctx, Stream &strm, + uint32_t dump_mask) override; + + Error + SetValueFromString(llvm::StringRef value, + VarSetOperationType op = eVarSetOperationAssign) override; + Error + SetValueFromString(const char *, + VarSetOperationType = eVarSetOperationAssign) = delete; + + bool Clear() override { + m_current_value.Clear(); + m_value_was_set = false; + return true; + } + + lldb::OptionValueSP DeepCopy() const override; + + bool IsAggregateValue() const override { return true; } + + //--------------------------------------------------------------------- + // Subclass specific functions + //--------------------------------------------------------------------- + + FileSpecList &GetCurrentValue() { return m_current_value; } + + const FileSpecList &GetCurrentValue() const { return m_current_value; } + + void SetCurrentValue(const FileSpecList &value) { m_current_value = value; } + protected: - FileSpecList m_current_value; + FileSpecList m_current_value; }; } // namespace lldb_private |