[cfe-dev] AST structrue of enums in clang

Talespin Kit talespin_kit at yahoo.com
Fri Mar 4 03:31:08 PST 2011


Assume the follwing code
 
class A
{
    public:
        enum E { // E is EnumDecl
                        ec1,  // EnumConstantDecl
                        ec2
                   };
 
       void foo()
       {
               E eVar = ec1; // this is a DeclStmt, but what is the type of eVar and ec1?
       }
};
 
In the above code we know that the line E eVar = ec1; is a DeclStmt. What are the subcomponents of that.
 
What is the type of ec1?.
 


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110304/10c2f5cf/attachment.html>


More information about the cfe-dev mailing list