[cfe-dev] CXTypeKind for plain char?

Milian Wolff mail at milianw.de
Sun Jan 5 09:22:05 PST 2014

Hey all,

why is there no CXTypeKind in clang-c/Index.h for "plain chars"? See e.g. [1], 
which says that these three types are inherently different:

char c1;
unsigned char c2;
signed char c3;

For now (clang 3.3) I cannot differentiate between c1 and c3, as clang will 
give me a CXType_Char_S kind for c1 as well. That might be true, 
implementation wise - but from the pov of a IDE or similar tool, I might want 
to know whether the user defined the signedness explicitly or not.


[1]: http://stackoverflow.com/questions/436513/char-signed-char-char-unsigned-char

Milian Wolff
mail at milianw.de

More information about the cfe-dev mailing list