Class TestForParentsMatchingASTStructure#

Inheritance Relationships#

Base Type#

Class Documentation#

class TestForParentsMatchingASTStructure : public AstPrePostProcessing#

Public Functions

explicit TestForParentsMatchingASTStructure(std::ostream &output, const std::string &prefix = "")#
bool check(SgNode *ast, size_t limit = 0)#
virtual void preOrderVisit(SgNode *node)#

this method is called at every traversed node before its children are traversed

virtual void postOrderVisit(SgNode *node)#

this method is called at every traversed node after its children were traversed

void show_details_and_maybe_fail(SgNode *node)#

Public Members

std::vector<SgNode*> stack#
std::ostream &output#
size_t nproblems#
size_t limit#
std::string prefix#

Public Static Functions

static void test(SgProject *project)#