aboutsummaryrefslogtreecommitdiffstats
path: root/typesystem.cpp
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-08-15 16:20:39 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:18 -0300
commit15b355dca205090adf9fe338f02963f945263d98 (patch)
tree5442a17d63b101adb908faa9295690d626f6d7a2 /typesystem.cpp
parent26eeabae2ac5f8b449d34bf472b1e506efdf35cd (diff)
Included the unsigned types in TypeEntry::isCppPrimitive() method list of types.
Also added a test for a typedef of an unsigned numerical type.
Diffstat (limited to 'typesystem.cpp')
-rw-r--r--typesystem.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/typesystem.cpp b/typesystem.cpp
index 0c1eae7c3..8d52e7aaa 100644
--- a/typesystem.cpp
+++ b/typesystem.cpp
@@ -2138,7 +2138,9 @@ bool TypeEntry::isCppPrimitive() const
if (m_name.contains(' ') || m_type == VoidType)
return true;
// Keep this sorted!!
- static const char* cppTypes[] = { "bool", "char", "double", "float", "int", "long", "long long", "short", "wchar_t"};
+ static const char* cppTypes[] = { "bool", "char", "double", "float", "int", "long", "long long", "short",
+ "unsigned char", "unsigned double", "unsigned float", "unsigned int",
+ "unsigned long", "unsigned long long", "unsigned short", "wchar_t" };
const int N = sizeof(cppTypes)/sizeof(char*);
PrimitiveTypeEntry* aliasedType = ((PrimitiveTypeEntry*)this)->basicAliasedTypeEntry();