aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/qtcreatorcdbext
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2020-11-20 13:36:29 +0100
committerDavid Schulz <david.schulz@qt.io>2020-11-20 13:44:38 +0000
commit06bc4203cfd1deb833d3b96357be60cb8d316fcb (patch)
tree56a221834e0c1197825b6960cb42d371b7480c87 /src/libs/qtcreatorcdbext
parent610847904044e58f6d5946acb30ff084da7c3163 (diff)
CDB: fix signed char container dumper
"signed char" might be reported as a template type but cannot be found when looked up, so just strip the "signed" from the typename and lookup char. Change-Id: I70e3b27d5c3bfd9e65da0a9f14b6a2df2c7e8dde Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/libs/qtcreatorcdbext')
-rw-r--r--src/libs/qtcreatorcdbext/pytype.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/qtcreatorcdbext/pytype.cpp b/src/libs/qtcreatorcdbext/pytype.cpp
index f7fd97106e..141175515e 100644
--- a/src/libs/qtcreatorcdbext/pytype.cpp
+++ b/src/libs/qtcreatorcdbext/pytype.cpp
@@ -426,6 +426,8 @@ PyType PyType::lookupType(const std::string &typeNameIn, ULONG64 module)
typeName.erase(typeName.length() - 6);
if (typeName == "__int64" || typeName == "unsigned __int64")
typeName.erase(typeName.find("__"), 2);
+ if (typeName == "signed char")
+ typeName.erase(0, 7);
const static std::regex typeNameRE("^[a-zA-Z_][a-zA-Z0-9_]*!?[a-zA-Z0-9_<>:, \\*\\&\\[\\]]*$");
if (!std::regex_match(typeName, typeNameRE))