[Issue 24448] New: ddoc could make unittest attributes available
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Fri Mar 22 12:47:42 UTC 2024
    
    
  
https://issues.dlang.org/show_bug.cgi?id=24448
          Issue ID: 24448
           Summary: ddoc could make unittest attributes available
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: nick at geany.org
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.
--
    
    
More information about the Digitalmars-d-bugs
mailing list