calls: false unresolved-site note for macro calls inside a dropped outer argument
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Rust
- Star
- 187
- Fork
- 53
- Merge trung bình
- 1 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 79
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của facebookexperimental/semcode
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 71/100
facebookexperimental/semcode#195 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
extract: namespaced C++ this->m and parameter p->m accesses file under different container typesĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
facebookexperimental/semcode#198 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 67/100
facebookexperimental/semcode#197 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 70/100
facebookexperimental/semcode#196 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
facebookexperimental/semcode#194 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của facebookexperimental/semcode
Issue tương tự
-
Update Wasmtime to 48.0.11 for RUSTSEC-2026-0648Có thể đã có người làm @flyingrobots đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
flyingrobots/edict#457 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
-
O-windows relnotes relnotes-needs-review relnotes-tracking-issue T-libs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
approved
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
fritzprix/libr-agent#3266 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Frame::second_to_frame truncates f32 product, causing periodic off-by-one framesCó thể đã có người làm @ShamanicArts đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
dmtrKovalenko/fframes#296 ·
Maintainer thường phản hồi trong vòng 1 ngày