Skip to content

ClassHierarchyWrapper::buildAncestorsMap

Computes the transitive closure of the child‐parent class relationship.

Synopsis

Declared in <src/midend/programAnalysis/CallGraphAnalysis/ClassHierarchyGraph.h>

static
void
buildAncestorsMap(
    MangledNameToClassDefsMap const& parents,
    MangledNameToClassDefsMap& transitiveParents);

Parameters

Name

Description

parents

map from each class to its parents.

transitiveParents

map from each class to all its ancestors

Created with MrDocs