[Issue 22353] New: Header generation is producing trailing whitespace on attribute declarations

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 3 19:21:49 UTC 2021


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 at puremagic.com
          Reporter: lsferreira169 at 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

--


More information about the Digitalmars-d-bugs mailing list