Bug 22354 – Header generation is producing trailing whitespace on enum declarations

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-10-03T19:34:14Z
Last change time
2021-10-05T11:33:18Z
Keywords
pull
Assigned to
No Owner
Creator
Luís Ferreira

Comments

Comment #0 by contact — 2021-10-03T19:34:14Z
DMD should generate clean headers without trailing whitespace, when possible. This case it generates a trailing whitespace for enums. ``` enum ABC { A, B, C, } ``` This will produce a trailing whitespace on the first line corresponding to the header generated
Comment #1 by dlang-bot — 2021-10-03T22:44:20Z
@ljmf00 created dlang/dmd pull request #13122 "hdrgen: remove trailing whitespace on enum declarations" fixing this issue: - hdrgen: remove trailing whitespace on enum declarations Fixes Issue 22354. Signed-off-by: Luís Ferreira <[email protected]> https://github.com/dlang/dmd/pull/13122
Comment #2 by dlang-bot — 2021-10-05T11:33:18Z
dlang/dmd pull request #13122 "hdrgen: remove trailing whitespace on enum declarations" was merged into master: - 9fdc12f57789aced7fae2831a0abd34ad3d73587 by Luís Ferreira: hdrgen: remove trailing whitespace on enum declarations Fixes Issue 22354. Signed-off-by: Luís Ferreira <[email protected]> https://github.com/dlang/dmd/pull/13122