callgraph: same-file C++ free-function overloads stop as ambiguous regardless of arguments

オープン
#197 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
67/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
cpp, rust
領域
devtools

調査の方向性

Start by tracing how callchain resolves C++ free-function calls and compare that path with the member-call overload disambiguation mentioned in the issue. Use the reproducer and run callchain call_over --up 0 --down 3; done means it follows over(int) to over1_leaf and never follows over0_leaf.

索引モデルが issue の本文から書いたものです。

説明

Direct callgraph resolution for C++ free functions ignores call arity and argument types, so an unambiguous call to an overloaded free function stops at [ambiguous:] instead of following the matching overload.

Reproducer

void over0_leaf() {}
void over1_leaf() {}
void over() { over0_leaf(); }
void over(int x) { (void)x; over1_leaf(); }
void call_over() { over(1); }

Running callchain call_over --up 0 --down 3 stops at over as [ambiguous:] rather than resolving over(1) to over(int) (over1_leaf).

Expected behavior

call_over should resolve over(1) to over(int) and follow over1_leaf (while still never following over0_leaf), matching the arity/type overload disambiguation already done for member calls.

主要言語
Rust
スター
187
フォーク
53
平均マージ
1日 9時間
マージ済み PR(30日)
79

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

facebookexperimental/semcode のほかの issue

facebookexperimental/semcode の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。