Fixed sized buffers of typedefs to primitives seem to generate incorrectly
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start at src/CppAst.CodeGen/CSharp/Plugins/DefaultTypeConverter.cs:177 and reproduce the typedef-based fixed buffer from the issue. Compare the generated C# declaration with the shown incorrect output and trace how the typedef is converted inside the buffer. Done means the example generates a valid fixed-buffer declaration without the incorrect IEquatable element type.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
A fixed size buffer of a typedef of a primitive generates improperly:
C
typedef uint64_t ecs_id_t;
typedef struct ecs_bulk_desc_t {
ecs_id_t ids[32];
}
C#
public readonly partial struct ecs_id_t : IEquatable<ecs_id_t> { ... }
public unsafe partial struct ecs_bulk_desc_t
{
public fixed IEquatable<ecs_id_t> ids[32];
}
The code path being hit that generates this is https://github.com/xoofx/CppAst.CodeGen/blob/master/src/CppAst.CodeGen/CSharp/Plugins/DefaultTypeConverter.cs#L177
Not sure what the correct way to resolve this is.
- Ngôn ngữ chính
- C#
- Star
- 142
- Fork
- 16
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của xoofx/CppAst.CodeGen
-
NoWrap questionsĐang mởquestion
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
xoofx/CppAst.CodeGen#37 · 3 bình luận ·
-
Custom type mappingĐang mởquestion
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
xoofx/CppAst.CodeGen#35 · 1 bình luận ·
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
xoofx/CppAst.CodeGen#34 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
xoofx/CppAst.CodeGen#32 ·
Tất cả issue của xoofx/CppAst.CodeGen
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue help wanted ready-for-human
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Attention: a throwing permission check on one contributor fails the whole aggregation requestĐang mởready-for-agent size:S status:todo
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
elsa-workflows/elsa-foundation#2830 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Review - Maintainer WG-Maintainers-Build
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
PowerShell/PowerShell#28220 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: docs eco: dotnet good first issue help wanted lane: free-agent roadmap size: XS type: docs
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 72/100
arminazimi/evergreen#377 ·
Maintainer thường phản hồi trong vòng 1 ngày