C++ Dumper: Support int in template arguments

e.g. Temp<int>

Change-Id: I3d737a696396548a896685aa48fc99a1c3289a6c
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Orgad Shaneh
2015-04-28 23:12:04 +03:00
committed by Orgad Shaneh
parent 4f743e9bbb
commit 4752c809c9

View File

@@ -43,7 +43,12 @@ def extractPointerType(d, value):
while stripTypeName(value) == "CPlusPlus::PointerType":
postfix += "*"
value = d.downcast(value["_elementType"]["_type"])
try:
return readLiteral(d, value["_name"]) + postfix
except:
if str(value.type.unqualified().target()) == "CPlusPlus::IntegerType":
return "int" + postfix
return "<unsupported>"
def readTemplateName(d, value):
name = readLiteral(d, value["_identifier"]) + "<"