Skip to content

SgNodeHelper::classDeclarationNestingSequence

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.

Synopsis

Declared in <src/midend/abstractLayer/SgNodeHelper.h>

std::list<SgClassDeclaration*>
classDeclarationNestingSequence(SgDeclarationStatement*);

Return Value

A standard container with linear time access to elements, and fixed time insertion/deletion at any point in the sequence.

Created with MrDocs