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

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

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

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

評価

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

調査の方向性

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.

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

説明

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.

主要言語
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 を短くまとめたダイジェスト。