[cfe-dev] Type Information for C++ classes

Douglas Gregor dgregor at apple.com
Wed Oct 17 09:56:58 PDT 2012


On Oct 17, 2012, at 4:08 AM, Mohammad Adil <madil90 at gmail.com> wrote:
> ---------- Forwarded message ----------
> From: Mohammad Adil <madil90 at gmail.com>
> Date: Wed, Oct 17, 2012 at 4:08 PM
> Subject: Re: [cfe-dev] Type Information for C++ classes
> To: Manuel Klimek <klimek at google.com>
> 
> 
> I am analyzing an AST with clang and I have a code which uses "FILE" type. Clang reports FILE type as int rather than FILE. I need to distinguish between FILE and int because both of them behave differently with streams. Is there a way I can distinguish between these two in clang?

Presumably, you'll see a TypedefType for FILE, whose underlying type is 'int'. 

	- Doug

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121017/ba17b123/attachment.html>


More information about the cfe-dev mailing list