www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22353] New: Header generation is producing trailing

https://issues.dlang.org/show_bug.cgi?id=22353

          Issue ID: 22353
           Summary: Header generation is producing trailing whitespace on
                    attribute declarations
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: lsferreira169 gmail.com

DMD should generate clean headers without trailing whitespace, when possible.
This case it generates a trailing whitespace for AttribDeclaration when an
storage class is provided.

```
 safe
{
    void foo() {}
    void bar() {}
}
```

This will produce a trailing whitespace on the first line corresponding to the
header generated

--
Oct 03 2021