forked from qt-creator/qt-creator
Dumper: Display "void" for VoidType
Useful for void template arguments Change-Id: Ifa85f36477dbe664525233668915a1f872042438 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
6c7ab912a6
commit
fff0a27103
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user