extract: C++ overloads on the same line collapse into one row

Đang mở
#194 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp, rust
Lĩnh vực
backend

Hướng nghiên cứu

Start by tracing extraction and deduplication for C++ functions, then find where line_start is used in the per-file storage key; the issue cites commit 8f1e3d2 as background. Check the tests for same-line overload extraction and add coverage showing Box::get() and Box::get(int) produce two rows. Done means both overloads remain distinct when they share a line.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Two C++ function overloads written on the same line collapse into a single function row during extraction/deduplication.

Reproducer

class Box { int get(); int get(int x); };

Extracting box.hpp produces only 1 row for Box::get instead of 2.

Cause

Documented in 8f1e3d2: line_start is the only per-file discriminator in the deduplication/storage key, so overloads sharing a line collide until a signature or column discriminator separates them.

Expected behavior

Both Box::get() and Box::get(int) should be preserved as distinct rows even when declared or defined on the same line.

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của facebookexperimental/semcode

Tất cả issue của facebookexperimental/semcode

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.