Skip to content
Snippets Groups Projects
Commit 87fc54fa authored by hjk's avatar hjk
Browse files

debugger: code cosmetics

parent 47fee378
No related branches found
No related tags found
No related merge requests found
...@@ -632,11 +632,11 @@ movableTypes = set([ ...@@ -632,11 +632,11 @@ movableTypes = set([
def stripClassTag(type): def stripClassTag(type):
if type.startswith("class "): if type.startswith("class "):
return type[6:] return type[6:]
elif type.startswith("struct "): if type.startswith("struct "):
return type[7:] return type[7:]
elif type.startswith("const "): if type.startswith("const "):
return type[6:] return type[6:]
elif type.startswith("volatile "): if type.startswith("volatile "):
return type[9:] return type[9:]
return type return type
...@@ -685,6 +685,7 @@ def makeExpression(value): ...@@ -685,6 +685,7 @@ def makeExpression(value):
def qtNamespace(): def qtNamespace():
try: try:
str = catchCliOutput("ptype QString::Null")[0] str = catchCliOutput("ptype QString::Null")[0]
# The result looks like:
# "type = const struct myns::QString::Null {" # "type = const struct myns::QString::Null {"
# " <no data fields>" # " <no data fields>"
# "}" # "}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment