Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Improve type safety of internal classes

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
cpp
領域
devtools

調査の方向性

まず、この issue の影響を受ける内部クラスと基底クラスから派生クラスへのキャストを洗い出し、次にそれらのオブジェクトがインストルメンテーションエンジンに入る箇所を追跡します。現在の継承パターンとインターフェースパターンを、提案されている仮想継承および派生クラスでの QI アプローチと比較します。関連する安全でないキャストに対処し、影響を受けるパスが互換性を維持していれば完了です。

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

説明

bug

There are a number of places where we cast from a base class to a derived class in our internal code, which could cause problems if a caller passes us an instance of an interface that we did not create internally. I suggest we:

  1. Update our code to use virtual inheritance (instead of multiple inheritance). This will help us catch locations where we cast from a base class.

  2. QI for the derived class. This will give us type safety.

主要言語
C++
スター
104
フォーク
53
平均マージ
3時間 34分
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/CLRInstrumentationEngine のほかの issue

microsoft/CLRInstrumentationEngine の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。