calls: false unresolved-site note for macro calls inside a dropped outer argument
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Read the change documented in commit 0ef7d7a and trace the live-site list shared by calls and callchain, including how it handles scope and preprocessing. Reproduce the case with the provided drop.h and user.c example, then check where an enclosing macro drops an argument slot. Done means calls EXPR stays silent about an unresolved site when its only live site is inside that dropped argument.
索引モデルが issue の本文から書いたものです。
説明
In calls <MACRO>, a macro invocation inside an argument discarded by an enclosing macro still triggers the === Via Macros === unresolved-site warning, even though its actual resolves to a function name and the call is never expanded.
Reproducer
// drop.h
#define EXPR(f, x) f(x)
#define DROP(a) 0
int target(int v);
// user.c
#include "drop.h"
int target(int v) { return v; }
int duser(int v) { return DROP(EXPR(target, 1)); }
Querying calls EXPR prints === Via Macros === with the unresolved-site note (the index can reduce to a function name) instead of staying silent.
Cause
Introduced and documented in 0ef7d7a: the live-site list behind the warning checks scope and preprocessing, but does not check whether an enclosing macro drops the argument slot. Because that list is shared with callchain, the slot-drop check needs to live there rather than only in calls.
Expected behavior
calls EXPR should not emit a === Via Macros === unresolved-site warning when the only live site is inside a dropped outer macro argument.
- 主要言語
- Rust
- スター
- 187
- フォーク
- 53
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 79
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
facebookexperimental/semcode のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 71/100
facebookexperimental/semcode#195 ·
メンテナーはふだん 2 日以内に返信
-
extract: namespaced C++ this->m and parameter p->m accesses file under different container typesオープン
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
facebookexperimental/semcode#198 ·
メンテナーはふだん 2 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 67/100
facebookexperimental/semcode#197 ·
メンテナーはふだん 2 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 70/100
facebookexperimental/semcode#196 ·
メンテナーはふだん 2 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
facebookexperimental/semcode#194 ·
メンテナーはふだん 2 日以内に返信
facebookexperimental/semcode の issue をすべて見る
似ている issue
-
Update Wasmtime to 48.0.11 for RUSTSEC-2026-0648対応中かも @flyingrobots が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
flyingrobots/edict#457 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
-
O-windows relnotes relnotes-needs-review relnotes-tracking-issue T-libs
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
approved
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
fritzprix/libr-agent#3266 ·
メンテナーはふだん 1 日以内に返信
-
Frame::second_to_frame truncates f32 product, causing periodic off-by-one frames対応中かも @ShamanicArts が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
dmtrKovalenko/fframes#296 ·
メンテナーはふだん 1 日以内に返信