Skip to content
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

introduce output_filet #588

Merged
merged 1 commit into from
Jul 10, 2024
Merged

introduce output_filet #588

merged 1 commit into from
Jul 10, 2024

Conversation

kroening
Copy link
Member

@kroening kroening commented Jul 4, 2024

This introduces a new class output_filet, which

  • given a filename, opens the file for writing, and provides an std::ostream for it; if this fails, an appropriate exception is thrown.

  • given "-", provides a pointer to std::cout

@kroening kroening force-pushed the output_filet branch 2 times, most recently from a4752da to 8d8da0a Compare July 8, 2024 18:16
@kroening kroening marked this pull request as ready for review July 8, 2024 18:20
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.

Wouldn't this also be useful in the CBMC code base and, hence, should live over there instead?

@tautschnig
Copy link
Collaborator

The code now merged via #573 should now also be revisited.

@kroening
Copy link
Member Author

Wouldn't this also be useful in the CBMC code base and, hence, should live over there instead?

Yes, will do.

This introduces a new class output_filet, which

* given a filename, opens the file for writing, and provides an std::ostream
  for it; if this fails, an appropriate exception is thrown.

* given "-", provides a pointer to std::cout
@kroening kroening merged commit f59c64d into main Jul 10, 2024
6 checks passed
@kroening kroening deleted the output_filet branch July 10, 2024 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants