extract: namespaced C++ this->m and parameter p->m accesses file under different container types
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 55/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- 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 日以内に返信
-
難易度 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 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
facebookexperimental/semcode#193 ·
メンテナーはふだん 2 日以内に返信
facebookexperimental/semcode の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
open-telemetry/otel-arrow#5040 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
cleanup
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
snaglet-org/snaglet#67 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
comp-s3queue
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
ClickHouse/ClickHouse#137649 ·
メンテナーはふだん 1 日以内に返信