[cfe-dev] How to know if a typedef has its own RecordDecl or not?
Douglas Gregor
dgregor at apple.com
Tue Apr 3 16:24:51 PDT 2012
Sent from my iPhone
On Apr 3, 2012, at 12:26 AM, Ying Zhengming <ltyingzhengming at gmail.com> wrote:
> I have two situations like:
>
> typedef struct {
> int foo;
> } bar;
>
> and
>
> struct _bar {
> int foo;
> };
>
> typedef struct _bar bar;
>
> How can I differ from these two situations
If the first case, the RecordDecl itself with have a "typedef for anonymous tag"; there is a special accessor for it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120403/d57e162b/attachment.html>
More information about the cfe-dev
mailing list