-
-
Notifications
You must be signed in to change notification settings - Fork 610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix issue 22770: C++ header generator generates trailing newlines #13649
Conversation
|
Thanks for your pull request, @ljmf00! Bugzilla references
Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "master + dmd#13649" |
|
@MoonlightSentinel you self-requested review but didn't leave a comment, perhaps you left it pending? |
src/dmd/dtoh.d
Outdated
| // prevent trailing newlines | ||
| foreach_reverse (i, ch; buf) | ||
| { | ||
| if (ch != '\n') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Produces invalid line endings on windows
|
ping @ljmf00 |
c91c0de to
0a12fae
Compare
Thanks for pinging. @MoonlightSentinel can you re-review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise LGTM
Weird. The coverage files includes those lines on windows and the corresponding file was uploaded to CodeCov |
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
This patch adds logic to check for trailing newlines in dtoh generator and remove them. Signed-off-by: Luís Ferreira <contact@lsferreira.net>
0a12fae to
5e32ea6
Compare
According to codecov https://app.codecov.io/gh/dlang/dmd/branch/dtoh-fix-trailing-new-line the coverage decreased a lot on my change. Probably worth investigating it. EDIT: I can't understand why, anyway, the logs don't show anything abnormal. |

This patch adds logic to check for trailing newlines in dtoh generator and
remove them.
Signed-off-by: Luís Ferreira contact@lsferreira.net
Related to #13638 .