Skip to content

Conversation

reuk
Copy link
Contributor

@reuk reuk commented May 7, 2017

endl forces flushing of the current stream, which is generally not necessary. By avoiding endl, our software becomes faster and more concise, and specifies the required behaviour more accurately. Also, our coding guideline specifies that we should prefer '\n' to endl.

@reuk reuk changed the title Replace std::endl with newline literals Replace std::endl with \n May 7, 2017
Copy link
Collaborator

@tautschnig tautschnig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One quick fix needed, but more importantly I'd like to see an extensions to cpplint to be included in this pull request to warn about any future std::endl introduction.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spurious ' introduced here.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit picking: please indent << to the same level as the << in the preceding line.

@reuk
Copy link
Contributor Author

reuk commented May 8, 2017

I've implemented the quick fixes. I'll try to look at adapting the linter this evening.

@reuk
Copy link
Contributor Author

reuk commented May 8, 2017

Hopefully the linter does the right thing now.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The '' should be 'runtime/endl'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well spotted!

@tautschnig
Copy link
Collaborator

A rebase is needed to make the tests pass.

@reuk
Copy link
Contributor Author

reuk commented May 10, 2017

This builds cleanly now.

@kroening
Copy link
Collaborator

Looks ready to go once rebased.

@kroening kroening assigned reuk and unassigned kroening May 16, 2017
@reuk
Copy link
Contributor Author

reuk commented May 17, 2017

Rebased now.

@kroening kroening merged commit 3a3e5a3 into diffblue:master May 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants