[lldb/SWIG] Refactor extensions to be non Python-specific (3/3)
authorJonas Devlieghere <jonas@devlieghere.com>
Thu, 9 Jan 2020 04:56:11 +0000 (20:56 -0800)
committerJonas Devlieghere <jonas@devlieghere.com>
Thu, 9 Jan 2020 05:02:59 +0000 (21:02 -0800)
commit51bdd98b8a52d07004bcaddff26caf376a1c32bf
tree979384730992ef98f1ea73e9a3c8579b7226dd45
parentd48ac7d54d8a096677c84cfb2928400e05b918ea
[lldb/SWIG] Refactor extensions to be non Python-specific (3/3)

The current SWIG extensions for the string conversion operator is Python
specific because it uses the PythonObjects. This means that the code
cannot be reused for other SWIG supported languages such as Lua.

This reimplements the extensions in a more generic way that can be
reused. It uses a SWIG macro to reduce code duplication.

Differential revision: https://reviews.llvm.org/D72377
18 files changed:
lldb/scripts/Python/python-extensions.swig
lldb/scripts/interface/SBProcess.i
lldb/scripts/interface/SBSection.i
lldb/scripts/interface/SBSymbol.i
lldb/scripts/interface/SBSymbolContext.i
lldb/scripts/interface/SBSymbolContextList.i
lldb/scripts/interface/SBThread.i
lldb/scripts/interface/SBType.i
lldb/scripts/interface/SBTypeCategory.i
lldb/scripts/interface/SBTypeEnumMember.i
lldb/scripts/interface/SBTypeFilter.i
lldb/scripts/interface/SBTypeFormat.i
lldb/scripts/interface/SBTypeNameSpecifier.i
lldb/scripts/interface/SBTypeSummary.i
lldb/scripts/interface/SBTypeSynthetic.i
lldb/scripts/interface/SBValue.i
lldb/scripts/interface/SBValueList.i
lldb/scripts/interface/SBWatchpoint.i