Commit fff0a271 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Dumper: Display "void" for VoidType



Useful for void template arguments

Change-Id: Ifa85f36477dbe664525233668915a1f872042438
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@theqtcompany.com>
parent 6c7ab912
......@@ -46,8 +46,11 @@ def extractPointerType(d, value):
try:
return readLiteral(d, value["_name"]) + postfix
except:
if str(value.type.unqualified().target()) == "CPlusPlus::IntegerType":
typeName = str(value.type.unqualified().target())
if typeName == "CPlusPlus::IntegerType":
return "int" + postfix
elif typeName == "CPlusPlus::VoidType":
return "void" + postfix
return "<unsupported>"
def readTemplateName(d, value):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment