Function SgNodeHelper::classDeclarationNestingSequence

Function SgNodeHelper::classDeclarationNestingSequence#

Function Documentation#

std::list<SgClassDeclaration*> SgNodeHelper::classDeclarationNestingSequence(SgDeclarationStatement*)#

computes a list representing the nesting structure of classes (including structs and unions). It traverses the AST upwards and collects SgClassDeclaration(s) only. This covers nested classes, nested structs, and nested unions, and combinations of those.