[cfe-dev] How to get the type in typedef by CSA interface or function.

牛治 via cfe-dev cfe-dev at lists.llvm.org
Fri Jun 1 06:09:24 PDT 2018


Dear developer:
   how to get the  type of variable in CSA?
   for example:
   I can get the name and the type of typedefs if they're anonymous structures and the like, but normal typedefs(eg typedef int size_t) I can only get size_t. How can I get the type "int"?


#include<stdio.h>
typedef  unsigned int WORD32;
int main(void){
 WORD32 a=50;
.........
}
obtain a type is WORD32,not unsigned int.how to get unsigned int by CSA interface or function?Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180601/970c2b84/attachment.html>


More information about the cfe-dev mailing list