Skip to main content

Module hierarchy

Module hierarchy 

Source
Expand description

C++ type-hierarchy resolution: the include-visible class table and the namespace/alias search that turns a written base specifier into a CodeUnit.

analyzer/cpp/hierarchy.rs in brokk-bifrost-analysis keeps the TypeHierarchyProvider impl, the two moka caches it reads through and the test-support build counter; every decision they memoize is a function here.

Functionsยง

build_cpp_visible_type_units
Every class-like or alias declaration reachable from file through its transitive #include closure, sorted and deduplicated.
cpp_resolve_direct_ancestors
The direct base classes of code_unit, resolved through the include-visible class table and canonicalized past any type-alias hops.