Skip to content

calls_out: keep a scoped unit's call to a different same-named unit (Part of #5628) - #5698

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5628-20261020T0700Z
Oct 20, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5628-20261020T0700Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5628 (part 2 only; part 1, self-edges in the DOOM oracle, is #5630).

Owner decisions

Owner ruling 2026-10-19 (#5628 part 2): self-recursion stays dropped per #3327; a call to a different same-named unit in another scope (Scope::X -> free X, C# explicit interface impl IEnumerable.GetEnumerator() => GetEnumerator()) is a real bug: keep the edge when a distinct unit of that name exists in another scope; still drop when the only candidate is the caller itself or resolution is ambiguous; keep #3360 nested-declaration drops. Tests: C++ Scope::f -> free f, the C# explicit-interface case, direct recursion still dropped, #3360 shapes. One clarifying line in the contract doc. Golden re-bless with the drift explained.

What changed

Class table

member status
C++ Scope::f -> free f (same file) fixed
C# Iface.M -> same-class M fixed
direct recursion (C, C++, C#), this->f, Scope::f(, Other::f still dropped (tested)
#3360 nested declarations still dropped (tested)

Evidence

  • Real scan: 25 Scope::f -> same-file free f edges gained over ~600 .cpp files of the local DOOM ports (e.g. FDecalLib::AddDecal, DFloor::StartFloorSound, Operator::keyOn).
  • Golden (crucible_check.py, both legs): PASS with zero diff, so no re-bless: the crucible corpus has no unit of this shape. No fixture changed.
  • pr_gates --fast 6/6, --ratchets 8/8 (0 skipped), tree-wide guards 184 passed, the five calls_out test files 113 passed.

Cross-repo

None.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 20, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 20, 2026
@squid-protocol
squid-protocol marked this pull request as ready for review October 20, 2026 07:23
@squid-protocol
squid-protocol enabled auto-merge (squash) October 20, 2026 07:23
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant