From 0f08dc84405796c25c070ef57258309f66017984 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Mon, 4 Aug 2025 09:12:58 -0700 Subject: [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. --- .../Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp') 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(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 = ""; // 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 -- cgit v1.1