Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#23,375 1 bình luận 0 reaction 2 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@dpiparo đang làm issue này rồi.

Từ ngày 16/9/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.

Ngôn ngữ chính
C++
Star
3.3k
Fork
1.6k
Merge trung bình
2 ngày 17 giờ
Pull request đã merge (30 ngày)
188

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của root-project/root

Tất cả issue của root-project/root

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.