diff options
author | Felipe de Azevedo Piovezan <fpiovezan@apple.com> | 2025-08-04 09:43:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-04 09:43:39 -0700 |
commit | 849daa4aa05f2b3ac114762c73b9cb48d132a060 (patch) | |
tree | 0358918696ca9ec11b0866f48dd3c8bd31504a4b /lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h | |
parent | 80bd72b9b0d5d1f8fd54a4ee6f8af80734912d5d (diff) | |
download | llvm-849daa4aa05f2b3ac114762c73b9cb48d132a060.zip llvm-849daa4aa05f2b3ac114762c73b9cb48d132a060.tar.gz llvm-849daa4aa05f2b3ac114762c73b9cb48d132a060.tar.bz2 |
[lldb][NFC] Move SBThread::ResumeNewPlan out of the header (#151988)
This *private* method is only defined as a member class of SBThread so
that it may be declared a `friend` of SBError and access a private
constructor of SBError that takes a `Status`, which is an `lldb_private`
object. In other words, the method does not use anything about the class
is belongs to, so it has no business being a member method.
A subsequent patch will need to add a new argument to this class, a
`Process::StopLocker`, which is also another `lldb_private` object. This
is another strong suggestion that this method does not belong on the
header file of a public API, even if at the private visibility level. We
can't forward declare nested types like `Process:StopLocker`, so this
problem is not easily solvable.
This commit moves the method out of the header and into an anon
namespace of the cpp file. It is also made to return a Status instead,
and the private `SBError` constructor is accessed by the SBThread
methods that call it.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h')
0 files changed, 0 insertions, 0 deletions