Skip to content

Commit 0f08dc8

Browse files
committed
[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.
1 parent a461e2b commit 0f08dc8

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1473,10 +1473,8 @@ python::runStringMultiLine(const llvm::Twine &string,
14731473
return Take<PythonObject>(result);
14741474
}
14751475

1476-
namespace lldb_private {
1477-
namespace python {
1478-
PyObject *RunString(const char *str, int start, PyObject *globals,
1479-
PyObject *locals) {
1476+
PyObject *lldb_private::python::RunString(const char *str, int start,
1477+
PyObject *globals, PyObject *locals) {
14801478
const char *filename = "<string>";
14811479

14821480
// Compile the string into a code object.
@@ -1493,7 +1491,7 @@ PyObject *RunString(const char *str, int start, PyObject *globals,
14931491
return result;
14941492
}
14951493

1496-
int RunSimpleString(const char *str) {
1494+
int lldb_private::python::RunSimpleString(const char *str) {
14971495
PyObject *main_module = PyImport_AddModule("__main__");
14981496
if (!main_module)
14991497
return -1;
@@ -1508,7 +1506,4 @@ int RunSimpleString(const char *str) {
15081506

15091507
return 0;
15101508
}
1511-
} // namespace python
1512-
} // namespace lldb_private
1513-
15141509
#endif

0 commit comments

Comments
 (0)