[cfe-dev] [PATCH]: C++ decl classes for the AST

Argiris Kirtzidis akyrtzi at gmail.com
Sat May 24 03:53:14 PDT 2008

Argiris Kirtzidis wrote:
> -struct Foo; // should create a Record #1
> -Foo *x; #2
> -struct Foo { typedef int Bar; } // should create a CXXRecord #3
> Now merging #1 with #3 is not so simple anymore. x's type is of 
> pointer of #1 but Bar belongs to #3. If there was only a Record class, 
> we would easily say that Bar belongs to #1.
> To sum up, I suggest:
> -Not using a separate CXXRecord

Another idea is to use Record for C and CXXRecord for C++, but CXXRecord 
will be used everywhere, Records won't be mixed with CXXRecords.


More information about the cfe-dev mailing list