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
IncludeGraphimport 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 handlercrates/code-graph/src/v2/linker/imports.rs— IncludeGraph import strategycrates/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