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

[cppyy] Deal with Clang attributes like `_Nonnull`

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

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

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

Từ ngày 23/2/2026.

Đánh giá

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

Mô tả

improvement in:Python Interface

Apple's libc++ headers (especially in newer macOS/Xcode SDKs) annotate some std::basic_string<wchar_t> constructors with Clang nullability qualifiers (e.g. const wchar_t* _Nonnull).

The cppyy backend currently preserves these qualifiers in the type spelling, so the existing wchar_t* converter does not match wchar_t*_Nonnull. This breaks Python string to std::wstring conversions and causes STL string tests to fail on macOS.

In https://github.com/root-project/root/pull/21348, we added an explicit converter mapping for wchar_t*_Nonnull to reuse the existing WCStringConverter. A more general solution would be to strip/normalize Clang attributes during type matching.

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.