extract: namespaced C++ this->m and parameter p->m accesses file under different container types
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
- 55/100
Hướng nghiên cứu
Start by reading commit dbb20a0 and trace how semcode records C++ member accesses for this and parameter types, especially namespace resolution. The issue does not name source files or tests, so locate the relevant extractor code and existing C++ access tests first. Done means both accesses resolve to outer::Box and a regression test confirms querying outer::Box::m returns both.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Inside a C++ namespace, member data accesses through this and through a parameter of the same class are recorded under different container_type keys, so a single accesses query misses half the accesses.
Reproducer
namespace outer {
struct Box { int m; void touch(); };
void Box::touch() { this->m = 1; }
void g(Box *p) { p->m = 2; }
}
this->minBox::touchis recorded withcontainer_type = Some("outer::Box").p->mingis recorded withcontainer_type = Some("Box")(the spelling written in the parameter list).
Cause
Documented in dbb20a0: this takes the enclosing owner's full namespace-qualified path, while parameter types are recorded as written without namespace qualification.
Expected behavior
Both this->m and p->m inside namespace outer should resolve to the same container (outer::Box) so querying outer::Box::m returns both accesses.
- 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
-
Độ 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
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
facebookexperimental/semcode#193 ·
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ự
-
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
-
marketing
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 95/100
Maintainer thường phản hồi trong vòng 1 ngày
-
num_ode_rk4_adaptive rejects atol = 0 while accepting rtol = 0 and while num_ode_dopri5 accepts bothĐang mởarea/ode-pde good first issue help wanted kind/contract severity/4-minor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Apich-Organization/rssn#383 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
Maintainer thường phản hồi trong vòng 1 ngày
-
KT-2245 e2e specs that call the backend directly fall back to the developer's own Kronn on :3140Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày