<html><head></head><body bgcolor="#FFFFFF"><div><br><br>Sent from my iPhone</div><div><br>On Apr 3, 2012, at 12:26 AM, Ying Zhengming <<a href="mailto:ltyingzhengming@gmail.com">ltyingzhengming@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>I have two situations like:<div><br></div><div>typedef struct {</div><div>  int foo;</div><div>} bar;</div><div><br></div><div>and</div><div><br></div><div>struct _bar {</div><div>  int foo;</div><div>};</div><div><br></div>
<div>typedef struct _bar bar;</div><div><br></div><div><ol><li>How can I differ from these two situations</li></ol></div></div></blockquote><br><div>If the first case, the RecordDecl itself with have a "typedef for anonymous tag"; there is a special accessor for it. </div></body></html>