Commit 76a8606c authored by Orgad Shaneh's avatar Orgad Shaneh Committed by hjk

Dumper: Add a dumper for CPlusPlus::FullySpecifiedType

Only prints the name for NamedType and PointerType

Change-Id: I8d4c3548b0260d0dfc091b326b5023bcfd6d46bd
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent e22d0e82
......@@ -131,6 +131,15 @@ def qdump__CPlusPlus__IntegerType(d, value):
d.putValue(value["_kind"])
d.putPlainChildren(value)
def qdump__CPlusPlus__FullySpecifiedType(d, value):
type = d.downcast(value["_type"])
typeName = stripTypeName(type)
if typeName == "CPlusPlus::NamedType":
dumpLiteral(d, type["_name"])
elif typeName == "CPlusPlus::PointerType":
d.putValue(d.hexencode(extractPointerType(d, type)), Hex2EncodedLatin1)
d.putPlainChildren(value)
def qdump__CPlusPlus__NamedType(d, value):
dumpLiteral(d, value["_name"])
d.putBetterType(value.type)
......
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