Unfortunately not. I am just seeing an int. That is because the header files which contain type information for FILE namely <stdio.h> is not found by the program. Is there a way to include default C++ paths using the CompilerInstance? I want to add these paths in a re-writing program.<br>
<br><div class="gmail_quote">On Wed, Oct 17, 2012 at 9:56 PM, Douglas Gregor <span dir="ltr"><<a href="mailto:dgregor@apple.com" target="_blank">dgregor@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div class="im"><br><div><div>On Oct 17, 2012, at 4:08 AM, Mohammad Adil <<a href="mailto:madil90@gmail.com" target="_blank">madil90@gmail.com</a>> wrote:</div><blockquote type="cite">
<div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Mohammad Adil</b> <span dir="ltr"><<a href="mailto:madil90@gmail.com" target="_blank">madil90@gmail.com</a>></span><br>
Date: Wed, Oct 17, 2012 at 4:08 PM<br>
Subject: Re: [cfe-dev] Type Information for C++ classes<br>To: Manuel Klimek <<a href="mailto:klimek@google.com" target="_blank">klimek@google.com</a>><br><br><br>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?</div>
</blockquote><br></div></div><div>Presumably, you'll see a TypedefType for FILE, whose underlying type is 'int'. </div><div><br></div><div><span style="white-space:pre-wrap">  </span>- Doug</div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Mohammad Adil<div>LUMS SSE</div><br>