Bug 24448 – ddoc could make unittest attributes available

Status
NEW
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2024-03-22T12:47:42Z
Last change time
2024-12-13T19:33:59Z
Keywords
ddoc
Assigned to
No Owner
Creator
Nick Treleaven
Moved to GitHub: dmd#20420 →

Comments

Comment #0 by nick — 2024-03-22T12:47:42Z
Currently unittest attributes are ignored by ddoc. Ddoc should provide a way of exposing these, so they can be rendered. Output e.g. Example: @safe @nogc ------------------------------------ // safe nogc unittest code ------------------------------------ Example: @system ------------------------------------ // system unittest code ------------------------------------ Perhaps introduce a macro DDOC_UNITTEST where the first argument is the attributes written in the source code before the unittest keyword, and the second argument is the unittest code.
Comment #1 by robert.schadek — 2024-12-13T19:33:59Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20420 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB