summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorDavid Peixotto <peix@meta.com>2025-03-31 09:53:46 -0700
committerGitHub <noreply@github.com>2025-03-31 09:53:46 -0700
commitf0b3bdd6dfa035653de5ead7b8d0582a8c0c158e (patch)
tree772a6acdfc5a7be1a68d3a550baa4b941daa3f33 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parenta0e1e680d28c4ef5f87be948d1d223fbfda2950c (diff)
[lldb] Remove raw access to PluginInstances vector (#132884)
Remove raw access to PluginInstances vector This commit modifies the PluginInstances class to remove direct access to the m_instances vector. Instead, we expose a new `GetSnapshot` method that returns a copy of the current state of the instances vector. All external iteration over the instances is updated to use the new method. The motivation for the change is to allow modifying the way we store instances without having to change all the clients. This is a preliminary change to allow enabling/disabling of plugins in which case we want to iterate over only enabled plugins. We also considered using a custom iterator that wraps the vector iterator and can skip over disabled instances. That works, but the iterator code is a bit messy with all template and typedefs to make a compliant iterator.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions