summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-10-14 16:59:44 +0000
committerZachary Turner <zturner@google.com>2015-10-14 16:59:44 +0000
commit87f47729850f0cd3f18a7c7c1edb615556956892 (patch)
treefd9a1ee92b74146e0796a164cf9996561a81e5c6 /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
parent60c24f70fe1f7f37ae34e0ff47cd60db39094a88 (diff)
downloadbcm5719-llvm-87f47729850f0cd3f18a7c7c1edb615556956892.tar.gz
bcm5719-llvm-87f47729850f0cd3f18a7c7c1edb615556956892.zip
Minor cleanup on PythonDataObject constructors.
Added a constructor that takes list_size for `PythonList`. Made all single-argument constructors explicit. Re-ordered constructors to be consistent with other classes. llvm-svn: 250304
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h')
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
index 17ece25c9d3..7d95d576945 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
@@ -215,10 +215,10 @@ class PythonString : public PythonObject
{
public:
PythonString();
- PythonString(PyRefType type, PyObject *o);
- PythonString(const PythonString &object);
explicit PythonString(llvm::StringRef string);
explicit PythonString(const char *string);
+ PythonString(PyRefType type, PyObject *o);
+ PythonString(const PythonString &object);
~PythonString() override;
static bool Check(PyObject *py_obj);
@@ -243,9 +243,9 @@ class PythonInteger : public PythonObject
{
public:
PythonInteger();
+ explicit PythonInteger(int64_t value);
PythonInteger(PyRefType type, PyObject *o);
PythonInteger(const PythonInteger &object);
- explicit PythonInteger(int64_t value);
~PythonInteger() override;
static bool Check(PyObject *py_obj);
@@ -266,7 +266,8 @@ public:
class PythonList : public PythonObject
{
public:
- PythonList(PyInitialValue value);
+ explicit PythonList(PyInitialValue value);
+ explicit PythonList(int list_size);
PythonList(PyRefType type, PyObject *o);
PythonList(const PythonList &list);
~PythonList() override;
@@ -292,7 +293,7 @@ public:
class PythonDictionary : public PythonObject
{
public:
- PythonDictionary(PyInitialValue value);
+ explicit PythonDictionary(PyInitialValue value);
PythonDictionary(PyRefType type, PyObject *o);
PythonDictionary(const PythonDictionary &dict);
~PythonDictionary() override;
@@ -313,6 +314,7 @@ public:
StructuredData::DictionarySP CreateStructuredDictionary() const;
};
+
} // namespace lldb_private
#endif // LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONDATAOBJECTS_H
OpenPOWER on IntegriCloud