-
Notifications
You must be signed in to change notification settings - Fork 273
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
Make componentt::{base,pretty}_name comments #5815
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #5815 +/- ##
===========================================
- Coverage 79.09% 79.09% -0.01%
===========================================
Files 1699 1699
Lines 196512 196516 +4
===========================================
Hits 155428 155428
- Misses 41084 41088 +4 ☔ View full report in Codecov by Sentry. |
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.
Changes are fine but a change to the format number feels like it is worth a major or minor version number change.
@@ -12,7 +12,7 @@ Author: CM Wintersteiger | |||
#ifndef CPROVER_GOTO_PROGRAMS_WRITE_GOTO_BINARY_H | |||
#define CPROVER_GOTO_PROGRAMS_WRITE_GOTO_BINARY_H | |||
|
|||
#define GOTO_BINARY_VERSION 5 | |||
#define GOTO_BINARY_VERSION 6 |
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.
Does this need a major or minor version number bump?
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 don't know how many customers have use cases where they build goto binaries, store them, and (re-)analyse them at a later point in time. I know that's something I occasionally see, but I have no idea how common this is. So I'm with you that a version number change is desirable, but I'd lean towards minor-version-bump-is-sufficient. If others agree with this, then we could contemplate merging this PR just before one of the next regular version bumps (e.g., next Thursday).
77f5148
to
30739e6
Compare
I concur with @martin-cs, changing the goto binary format should be a major version bump as it's a pretty clear example of a breaking change. While hopefully this would not impact too many people, this gives us an opportunity to tell people "Here, this breaks this particular use case, watch out for that, if you're not doing that you should be fine". Of course in principle any change is potentially a breaking change for someone, but my view has been that if we know something is a breaking change it should result in a major version bump. |
d657a5d
to
1691c0d
Compare
2ab9a7d
to
a43b83e
Compare
a43b83e
to
e495599
Compare
The only semantically relevant name information is the ID_name entry. Two components should not be considered different when they only differ in their base_name or pretty_name. Thus, use ID_C_base_name and ID_C_pretty_name, respectively, to store these. The goto binary version is incremented as goto binaries compiled before this patch are incompatible with the changes introduced here. Fixes: diffblue#5818
e495599
to
8e4f8e3
Compare
As side effect, this PR also sorts out the goto binary version bump that we will want anyhow with version 6 (and the breaking changes that we intend to merge as part of this). |
I haven't seen yet a convincing reason to do this -- I'd be convinced by the changes to the array type, but that needs more work. |
The only semantically relevant name information is the ID_name entry.
Two components should not be considered different when they only differ
in their base_name or pretty_name. Thus, use ID_C_base_name and
ID_C_pretty_name, respectively, to store these.
The goto binary version is incremented as goto binaries compiled before
this patch are incompatible with the changes introduced here.