have an interesting problem. I am using the CPPASTVisitor (CDT 5.0.2)
class to traverse an AST looking for enumeration
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.
this a bug or expected behavior?