summaryrefslogtreecommitdiff
path: root/include/lldb/Interpreter/OptionValueString.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/lldb/Interpreter/OptionValueString.h')
-rw-r--r--include/lldb/Interpreter/OptionValueString.h53
1 files changed, 24 insertions, 29 deletions
diff --git a/include/lldb/Interpreter/OptionValueString.h b/include/lldb/Interpreter/OptionValueString.h
index c75745d402bef..bbdd0c8ba55c2 100644
--- a/include/lldb/Interpreter/OptionValueString.h
+++ b/include/lldb/Interpreter/OptionValueString.h
@@ -1,4 +1,4 @@
-//===-- OptionValueString.h --------------------------------------*- C++ -*-===//
+//===-- OptionValueString.h -------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
@@ -24,7 +24,6 @@ namespace lldb_private {
class OptionValueString : public OptionValue
{
public:
-
typedef Error (*ValidatorCallback) (const char* string,
void* baton);
@@ -43,8 +42,8 @@ public:
{
}
- OptionValueString (ValidatorCallback validator,
- void* baton = NULL) :
+ OptionValueString(ValidatorCallback validator,
+ void* baton = nullptr) :
OptionValue(),
m_current_value (),
m_default_value (),
@@ -84,9 +83,9 @@ public:
m_default_value.assign (default_value);
}
- OptionValueString (const char *value,
- ValidatorCallback validator,
- void* baton = NULL) :
+ OptionValueString(const char *value,
+ ValidatorCallback validator,
+ void* baton = nullptr) :
OptionValue(),
m_current_value (),
m_default_value (),
@@ -101,10 +100,10 @@ public:
}
}
- OptionValueString (const char *current_value,
- const char *default_value,
- ValidatorCallback validator,
- void* baton = NULL) :
+ OptionValueString(const char *current_value,
+ const char *default_value,
+ ValidatorCallback validator,
+ void* baton = nullptr) :
OptionValue(),
m_current_value (),
m_default_value (),
@@ -118,38 +117,35 @@ public:
m_default_value.assign (default_value);
}
- virtual
- ~OptionValueString()
- {
- }
-
+ ~OptionValueString() override = default;
+
//---------------------------------------------------------------------
// Virtual subclass pure virtual overrides
//---------------------------------------------------------------------
- virtual OptionValue::Type
- GetType () const
+ OptionValue::Type
+ GetType() const override
{
return eTypeString;
}
- virtual void
- DumpValue (const ExecutionContext *exe_ctx, Stream &strm, uint32_t dump_mask);
+ void
+ DumpValue(const ExecutionContext *exe_ctx, Stream &strm, uint32_t dump_mask) override;
- virtual Error
- SetValueFromString (llvm::StringRef value,
- VarSetOperationType op = eVarSetOperationAssign);
+ Error
+ SetValueFromString(llvm::StringRef value,
+ VarSetOperationType op = eVarSetOperationAssign) override;
- virtual bool
- Clear ()
+ bool
+ Clear() override
{
m_current_value = m_default_value;
m_value_was_set = false;
return true;
}
- virtual lldb::OptionValueSP
- DeepCopy () const;
+ lldb::OptionValueSP
+ DeepCopy() const override;
//---------------------------------------------------------------------
// Subclass specific functions
@@ -213,7 +209,6 @@ public:
return m_default_value.empty();
}
-
protected:
std::string m_current_value;
std::string m_default_value;
@@ -224,4 +219,4 @@ protected:
} // namespace lldb_private
-#endif // liblldb_OptionValueString_h_
+#endif // liblldb_OptionValueString_h_