Skip to main content

Module graph_builder

Module graph_builder 

Source
Expand description

Cpp GraphBuilder implementation for code graph construction.

Extracts Cpp-specific relationships:

  • Class definitions (regular, template, sealed, objects, companion objects)
  • Function definitions (regular, virtual, inline, extension functions)
  • Call expressions (regular calls, method calls, extension calls)
  • Inheritance (class/struct inheritance via Inherits edges)
  • Interface implementation (Implements edges for classes implementing pure virtual interfaces)
  • FFI declarations (extern “C” blocks via FfiCall edges)

§Multi-Pass Strategy

  1. Pass 1: Extract class/object definitions → Create Class nodes
  2. Pass 2: Extract function/property definitions → Create Function nodes
  3. Pass 3: Extract call expressions → Create Call edges
  4. Pass 4: Extract FFI declarations → Create FFI function nodes

Structs§

CppGraphBuilder
Cpp-specific GraphBuilder implementation.