Call graph: a call to a different same-named function in another scope (Scope::X -> free X, C# explicit interface impl) is dropped as if it were recursion
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 76/100
調査の方向性
Start by reading gitgalaxy/core/detector.py:1295, especially _drop_nested_declaration_calls, and inspect the call-graph tests and #3360 nested-declaration cases. Reproduce direct recursion and a qualified call such as Scope::f calling free f, then adjust the filter so it excludes the enclosing unit itself without restoring nested declaration edges. Run the relevant detector tests, followed by the licensed DOOM corpus goldens if available; expected results should retain same-named cross-scope calls and make the listed self-recursion and cross-scope miss counts approach zero.
索引モデルが issue の本文から書いたものです。
説明
Problem
A function's call to itself, and a qualified method's call to a same-named function in another scope, are missing from calls_out_to.
port (engine 0e2bf4ade) |
self-recursion not recorded | qualified caller -> same-named other function missed |
|---|---|---|
| linuxdoom | 3 (R_RenderBSPNode, P_RecursiveSound, P_CrossBSPNode) |
0 |
| chocolate-doom | 24 | 0 |
| dsda-doom | 21 | 0 |
| odamex | 236 | 2 |
| eternity | 114 | 3 |
| doom3-bfg | 163 | 15 |
| doomsday | 544 | 87 |
| gzdoom | 652 | 515 (e.g. src/common/2d/v_draw.cpp:1511 _Screen::VirtualToRealCoords -> free VirtualToRealCoords) |
Likely cause (confirm)
gitgalaxy/core/detector.py:1295 _drop_nested_declaration_calls (#3360 C5) drops a callee when a unit of that leaf name starts inside the caller's line range. The caller's own definition always starts inside its own range, so its own leaf name is always dropped: that removes true recursion, and (because it compares leaf names) any call to X from Scope::X.
Acceptance
- The filter ignores the enclosing unit itself (compare unit identity/start, not just the leaf name); a call to a same-named function in another scope is kept; real nested declarations are still dropped (#3360 cases keep passing).
- Tests: direct recursion (C, C++, and one non-C language that shares the path),
Scope::fcalling freef, macro-thunk calling the native of the same name, and the #3360 nested-declaration shapes. - DOOM licensed C/C++ ports: the counts above go to ~0 under the independent body oracle; goldens updated with the drift explained (this is a call-graph change, PageRank/fan-in move).
Found by the DOOM corpus call-graph consensus check (#5620, #5457): near-identical ports vote on each call edge, and an independent body oracle re-extracts calls from source. Licensed ports only.
🤖 Generated with Claude Code
- 主要言語
- Python
- スター
- 57
- フォーク
- 11
- 平均マージ
- 1時間 32分
- マージ済み PR(30日)
- 990
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
squid-protocol/gitgalaxy のほかの issue
-
scope:frontier
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
squid-protocol/gitgalaxy#6066 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug claim:melek priority: high scope:core
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
squid-protocol/gitgalaxy#6065 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug claim:melek priority: high scope:infra
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
squid-protocol/gitgalaxy#6064 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
bug ci-cd priority: high scope:infra
難易度 4/5 3〜5日 初心者へのやさしさ 56/100
squid-protocol/gitgalaxy#6061 ·
メンテナーはふだん 1 日以内に返信
-
bug priority: high scope:infra testing
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
squid-protocol/gitgalaxy#5954 ·
メンテナーはふだん 1 日以内に返信
squid-protocol/gitgalaxy の issue をすべて見る
似ている issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
sergey-miryanov/gcmon#230 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Azure-Samples/azure-search-openai-demo#3249 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] Failed archive extraction deletes the dataset cache対応中かも @dajiaohuang が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
alibaba/GraphScope#4674 ·