summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-02-03 01:30:30 +0000
committerGreg Clayton <gclayton@apple.com>2012-02-03 01:30:30 +0000
commit402230e63318a62178d674ffcfb9cce7e65caf9c (patch)
tree32625e797423a2106910765307af837401671e69 /lldb/scripts/Python
parent5069aa33b9aab4919322d24ffd9fa24e3b5ccfb6 (diff)
downloadbcm5719-llvm-402230e63318a62178d674ffcfb9cce7e65caf9c.tar.gz
bcm5719-llvm-402230e63318a62178d674ffcfb9cce7e65caf9c.zip
Added support to SBType for getting template arguments from a SBType:
uint32_t SBType::GetNumberOfTemplateArguments (); lldb::SBType SBType::GetTemplateArgumentType (uint32_t idx); lldb::TemplateArgumentKind SBType::GetTemplateArgumentKind (uint32_t idx); Some lldb::TemplateArgumentKind values don't have a corresponding SBType that will be returned from SBType::GetTemplateArgumentType(). This will help our data formatters do their job by being able to find out the type of template params and do smart things with those. llvm-svn: 149658
Diffstat (limited to 'lldb/scripts/Python')
-rw-r--r--lldb/scripts/Python/interface/SBType.i9
1 files changed, 9 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBType.i b/lldb/scripts/Python/interface/SBType.i
index 64a957486c5..1b0f63b2ca9 100644
--- a/lldb/scripts/Python/interface/SBType.i
+++ b/lldb/scripts/Python/interface/SBType.i
@@ -191,6 +191,15 @@ public:
lldb::TypeClass
GetTypeClass ();
+ uint32_t
+ GetNumberOfTemplateArguments ();
+
+ lldb::SBType
+ GetTemplateArgumentType (uint32_t idx);
+
+ lldb::TemplateArgumentKind
+ GetTemplateArgumentKind (uint32_t idx);
+
%pythoncode %{
__swig_getmethods__["name"] = GetName
if _newclass: x = property(GetName, None)
OpenPOWER on IntegriCloud