This is an archive of the discontinued LLVM Phabricator instance.

[lldb/Interpreter] Improve ScriptedPythonInterface::GetStatusFromMethod
ClosedPublic

Authored by mib on Dec 2 2022, 11:45 PM.

Details

Summary

This patch makes ScriptedPythonInterface::GetStatusFromMethod take a
parameter pack as an argument. That will allow it to pass arbitrary
arguments to the python method.

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>

Diff Detail

Event Timeline

mib created this revision.Dec 2 2022, 11:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 2 2022, 11:45 PM
mib requested review of this revision.Dec 2 2022, 11:45 PM
JDevlieghere accepted this revision.Dec 5 2022, 9:36 AM

Makes sense, LGTM.

This revision is now accepted and ready to land.Dec 5 2022, 9:36 AM
labath added a subscriber: labath.Dec 15 2022, 2:01 PM
labath added inline comments.
lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.h
106

std::forward<Args>(args)... maybe?

mib marked an inline comment as done.Dec 16 2022, 6:16 AM
mib added inline comments.
lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.h
106

Indeed, thanks!

mib updated this revision to Diff 484527.Dec 21 2022, 4:14 AM
mib marked an inline comment as done.

Use std::forward