Support more parameter types in vtable name mangling

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
cpp
領域
compilers

調査の方向性

#256 で導入された vtable の名前修飾実装から始め、列挙されている未サポートのパラメーター型のいずれかを使ってインターフェースのメンバー関数を再現してください。Issue ではソースファイルもテストも指定されておらず、複数の異なるカテゴリを対象としているため、完了条件を定義する前に、どのパラメーター型をサポートするかと、期待される名前修飾を明確にしてください。

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

説明

#256 intentionally leaves some parameter types unsupported: using one in an interface member function fails noisily at compile time (a consteval throw such as "name mangling: unsupported parameter type") rather than mis-conforming or misbehaving at runtime.

Currently unsupported, all previously accepted by the index-based naming #256 replaces:

  • pointer-to-member types (Itanium M<class><member type>)
  • non-type template arguments other than bool, the standard integral types, and enum values equal to a named enumerator — floating-point, class-type, pointer and reference arguments, template-template arguments, and enum values matching no enumerator (bitmask values, any std::byte argument)
  • unnamed types: closure types, typedef'd anonymous enums

Filed from the #256 review discussion ("We will leave these as unsupported for now") so support can be added as demand arises.

主要言語
C++
スター
12
フォーク
4
平均マージ
1日 11時間
マージ済み PR(30日)
15

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

jbcoe/cc-protocol のほかの issue

jbcoe/cc-protocol の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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