feat(code-graph): add initial C language support

Summary

  • Adds C language support to the v2 code-graph pipeline via a new generic language handler (langs/generic/c.rs)
  • Implements IncludeGraph import strategy for C cross-file resolution, including header-to-source pairing and transitive include chain resolution
  • Introduces file-scoped FQNs for C symbols and comprehensive integration tests (hardcore + resolution fixtures)

Changes

  • crates/code-graph/src/v2/langs/generic/c.rs — new C language handler
  • crates/code-graph/src/v2/linker/imports.rs — IncludeGraph import strategy
  • crates/code-graph/src/v2/dsl/types.rs — DSL type additions for include semantics
  • Tree-sitter C grammar wired up in treesitter-visit
  • Two integration test fixture suites: c/hardcore.yaml, c/resolution.yaml

Part of #337 (closed)

Edited by Michael Usachenko

Merge request reports

Loading