diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2025-08-04 09:12:58 -0700 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2025-08-04 09:22:25 -0700 |
commit | 0f08dc84405796c25c070ef57258309f66017984 (patch) | |
tree | 4db4d634fd52332acb1e48f7bf38a628846bc1c3 /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | |
parent | a461e2b16056a0ad0e09e7866ed70edb97763b03 (diff) | |
download | llvm-0f08dc84405796c25c070ef57258309f66017984.zip llvm-0f08dc84405796c25c070ef57258309f66017984.tar.gz llvm-0f08dc84405796c25c070ef57258309f66017984.tar.bz2 |
[lldb] Use fully qualified name instead of namespace (NFC)
In #151761, both Alex and Pavel prefer to use a fully qualified name
instead of opening a namespace. This PR addresses that post-commit
feedback.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
-rw-r--r-- | lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp index 42dc579..b07415e 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp @@ -1473,10 +1473,8 @@ python::runStringMultiLine(const llvm::Twine &string, return Take<PythonObject>(result); } -namespace lldb_private { -namespace python { -PyObject *RunString(const char *str, int start, PyObject *globals, - PyObject *locals) { +PyObject *lldb_private::python::RunString(const char *str, int start, + PyObject *globals, PyObject *locals) { const char *filename = "<string>"; // Compile the string into a code object. @@ -1493,7 +1491,7 @@ PyObject *RunString(const char *str, int start, PyObject *globals, return result; } -int RunSimpleString(const char *str) { +int lldb_private::python::RunSimpleString(const char *str) { PyObject *main_module = PyImport_AddModule("__main__"); if (!main_module) return -1; @@ -1508,7 +1506,4 @@ int RunSimpleString(const char *str) { return 0; } -} // namespace python -} // namespace lldb_private - #endif |