Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Looking for enumeration declarations

I have an interesting problem.  I am using the CPPASTVisitor (CDT 5.0.2) class to traverse an AST looking for enumeration declarations.

 

The problem I have is that the “visit(IASTDeclSpecifier)” is not called for enumeration declarations.  However, the “visit(IASTEnumerator)” method is called and I can retrieve the parent and it is a CPPASTEnumerationSpecifier which indirectly implements IASTDeclSpecifier.

 

Is this a bug or expected behavior?

 

-David


Back to the top