[cfe-dev] ParseTag only called from ParseEnumSpecifier

Argiris Kirtzidis akyrtzi at gmail.com
Thu Sep 4 17:05:41 PDT 2008

Doug Gregor wrote:
>> On Wed, Sep 3, 2008 at 2:36 PM, Ted Kremenek <kremenek at apple.com> wrote:
>>> As a side note, my original interest in this code was to allow the
>>> parser+actions to be able to distinguish up front between enum/struct/
>>> union/class forward declarations and definitions.
>> Doesn't already the parser+actions distinguish them ? ActOnTag gets passed a
>> TagKind which is one of TK_Definition/TK_Declaration/TK_Reference.
> I *think* Ted meant that he wants to be able to know before actually
> parsing the struct-or-union-specifier (in C) whether it's going to
> declare, define, or reference a tag.

Ah, I misunderstood Ted's intentions. Ted, could you explain why is this 
necessary ?


More information about the cfe-dev mailing list