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

Add a way to explicitly request the registering a (non-typedef) type alias without requesting the dictionary.

オープン
#23,375 コメント 1 件 リアクション 0 件 担当者 2 名 GitHub で見る

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

@dpiparo がすでに取り組んでいます。

2026年9月16日 から。

評価

この issue はまだ評価されていません。

説明

experiment in:Dictionaries new feature

As seen at https://github.com/cms-sw/cmssw/pull/51761

We can have the situation where we have, the TClass::GetClass for the various spelling (myclass, Wrapper<myclass>, ShortCut) work without AutoParsing but the spelling Wrapper<OtherName> does not.

// Header in Library 1
#pragma once

struct myclass {};

template <typename T>
struct Wrapper {
   T value;
};
// Library 1
<class name="myclass" />
<class name="Wrapper<myclass>" />
// Header in Library2
typedef OtherName myclass;
using ShortCut = Wrapper<myclass>;
// Library 2
<typedef name="OtherName" />
<typedef name="ShortCut" />

What does not work is:

<typedef name="Wrapper<OtherName>" />

which makes sense since there is no such 'typedef' but there isn't yet a syntax to express it, eg:

<alias name="Wrapper<OtherName>" />

This issue would be solved by introducing the tag alias in the selection xml grammar and #pragma link C++ alias in the linkdef grammar that would register the name (indirectly) via the ::ROOT::AddClassAlternate interface and add the proper documentation and test for this new tag.

主要言語
C++
スター
3.3k
フォーク
1.6k
平均マージ
2日 8時間
マージ済み PR(30日)
179

環境構築

はじめの一歩

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

root-project/root のほかの issue

root-project/root の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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