-
Notifications
You must be signed in to change notification settings - Fork 273
Replace file_util.{h,cpp} by std::filesystem #8033
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
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #8033 +/- ##
===========================================
- Coverage 79.09% 79.08% -0.01%
===========================================
Files 1699 1697 -2
Lines 196512 196437 -75
===========================================
- Hits 155428 155362 -66
+ Misses 41084 41075 -9 ☔ View full report in Codecov by Sentry. |
@@ -303,9 +303,9 @@ int as_modet::as_hybrid_binary(const compilet &compiler) | |||
std::string saved = output_file + ".goto-cc-saved"; | |||
try | |||
{ | |||
file_rename(output_file, saved); | |||
std::filesystem::rename(output_file, saved); |
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.
Do we have any tests for this (even manual)? The codecov warning is a bit concerning when refactoring bits like that, which follow some diverging codepaths like exceptions being triggered, etc.
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.
I think the only time this is genuinely put to a test at the moment is the "Build Xen with CPROVER tools" CI job. We don't have regression tests for goto-as
(as_modet
) at this time.
With C++ 17 we can use the STL-provided implementation instead of rolling our own (platform-dependent) code.
7f2f46b
to
5664950
Compare
With C++ 17 we can use the STL-provided implementation instead of rolling our own (platform-dependent) code.