This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readobj][llvm-readelf] - Remove excessive empty lines when reporting errors and warnings.
ClosedPublic

Authored by grimar on Dec 10 2019, 3:12 AM.

Details

Summary

After recent changes it is now seems possible to get rid of
printing '\n' before each error and warning. This makes the output
cleaner.

Diff Detail

Event Timeline

grimar created this revision.Dec 10 2019, 3:12 AM
Herald added a project: Restricted Project. · View Herald Transcript

On the surface, this change looks fine to me. Have you checked that there are no more cases in the code where a warning can be reported in the middle of a line?

grimar added a comment.EditedDec 11 2019, 12:08 AM

On the surface, this change looks fine to me. Have you checked that there are no more cases in the code where a warning can be reported in the middle of a line?

I reviewed them briefly and did not find anything obviously suspicious. Since we are going to switch to reporting unique warnings everywhere (right?),
then any such places will be revealed anyways in case they still are not covered by our tests.

jhenderson accepted this revision.Dec 11 2019, 3:01 AM

Okay, LGTM.

This revision is now accepted and ready to land.Dec 11 2019, 3:01 AM
This revision was automatically updated to reflect the committed changes.