Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#23,375 1 commento 0 reazioni 2 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@dpiparo ci sta già lavorando.

Dal 16/9/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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.

Lingua principale
C++
Stelle
3.3k
Fork
1.6k
Merge medio
2g 16h
PR unite (30g)
194

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di root-project/root

Tutte le issue di root-project/root

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.