From 06bc4203cfd1deb833d3b96357be60cb8d316fcb Mon Sep 17 00:00:00 2001 From: David Schulz Date: Fri, 20 Nov 2020 13:36:29 +0100 Subject: [PATCH] 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 --- src/libs/qtcreatorcdbext/pytype.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libs/qtcreatorcdbext/pytype.cpp b/src/libs/qtcreatorcdbext/pytype.cpp index f7fd97106eb..141175515e1 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))