Skip to content

call graph: cross-function return types, chained receivers, and C++ overload arg typing - #8632

Merged
squid-protocol merged 8 commits into
mainfrom
feat/call-resolution-return-types-cpp-overloads
Nov 20, 2026
Merged

squid-protocol merged 8 commits into
mainfrom
feat/call-resolution-return-types-cpp-overloads

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

  • Add gitgalaxy/core/return_types.py to extract declared (and unannotated return Class(...)) return types, chained call-expression receivers (calls_out_expr_chains), and factory-call assignments (calls_out_call_assigns) without altering calls_out_qualifiers (<expr>).
  • Propagate return types across factory assignments and chained receivers in call_resolver.py.
  • Persist and rehydrate return_type, calls_out_expr_chains, and calls_out_call_assigns in record_keeper.py and state_rehydrator.py.
  • Add C++ argument-type overload disambiguation in overload_types.py, enable calls_out_arg_types in cpp.py, fix leaf = _UNIT_NAME_SEPARATORS.split(name)[-1] in detector.py for out-of-line Class::method headers, and add an exact-arity fallback for untyped C++ call sites in call_resolver._choose_overloads.

Local Gate Results

  • python: 99.9% / 99.4% confident precision, 54.9% / 43.3% recall (passed)
  • typescript: 100.0% confident precision, 82.3% recall, 90.0% resolution recall (passed)
  • javascript: 99.4% confident precision, 87.9% recall, 91.9% resolution recall (passed)
  • cpp (fmtlib/fmt): 90.3% confident precision (80.7% strict), 40.8% recall (+1.2 pp), 67.4% resolution recall (+1.1 pp) (passed)
  • Unit tests: 191 call-resolver/overload/return-type tests + 30 fcall recorder tests passed.

@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

Comment thread gitgalaxy/core/overload_types.py Fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants