forked from qt-creator/qt-creator
Cdbext: report HRESULT as an integral data type
Fixes: QTCREATORBUG-30574 Change-Id: If877c32639c853bae9b6a5a5762f24a3954f60d5 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -49,10 +49,24 @@ static bool isType(const std::string &typeName, const std::vector<std::string> &
|
|||||||
|
|
||||||
static bool isIntegralType(const std::string &typeName)
|
static bool isIntegralType(const std::string &typeName)
|
||||||
{
|
{
|
||||||
static const std::vector<std::string> integralTypes({"bool",
|
static const std::vector<std::string> integralTypes(
|
||||||
"char", "unsigned char", "char16_t", "char32_t", "wchar_t",
|
{"bool",
|
||||||
"short", "unsigned short", "int", "unsigned int",
|
"char",
|
||||||
"long", "unsigned long", "int64", "unsigned int64", "__int64", "unsigned __int64"});
|
"unsigned char",
|
||||||
|
"char16_t",
|
||||||
|
"char32_t",
|
||||||
|
"wchar_t",
|
||||||
|
"short",
|
||||||
|
"unsigned short",
|
||||||
|
"int",
|
||||||
|
"unsigned int",
|
||||||
|
"long",
|
||||||
|
"unsigned long",
|
||||||
|
"int64",
|
||||||
|
"unsigned int64",
|
||||||
|
"__int64",
|
||||||
|
"unsigned __int64",
|
||||||
|
"HRESULT"});
|
||||||
return isType(typeName, integralTypes);
|
return isType(typeName, integralTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user