-
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
Refactor string_constantt::get_value
and string_constantt::set_value
call sites.
#7999
Refactor string_constantt::get_value
and string_constantt::set_value
call sites.
#7999
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #7999 +/- ##
===========================================
- Coverage 77.98% 77.86% -0.12%
===========================================
Files 1701 1701
Lines 196502 196496 -6
===========================================
- Hits 153245 153010 -235
- Misses 43257 43486 +229
☔ View full report in Codecov by Sentry. |
This should probably be 2 commits. A first commit removing the usage and a second commit removing the functions. That way if any downstream users temporarily want the functions back, then it is easier for them to revert the second commit without reverting the first (in their fork / subtree). |
EDIT: We discussed it further offline, and it seems that there's a way forward with this that doesn't result in the first commit being broken. I will be working on this and update the PR correspondingly. |
b4c6793
to
ae04275
Compare
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.
Quoting our coding guidelines:
"Any deprecated functionality should remain in place for at least six months from the date of deprecation. Before deprecating code, all in-tree uses should be replaced or marked as deprecated."
So let's please have the first commit, and put the second commit in a PR of its own that should remain in Draft state for the next 6 months.
…string_constantt::set_value`. Change them to use the equivalent calls to `value()`, which is hinted to be the substitute for the `get`/`set` functions.
ae04275
to
db61a6a
Compare
get_value
and set_value
from string_constantt
string_constantt::get_value
and string_constantt::set_value
call sites.
@tautschnig Done (cleaned up this PR). Will raise the other PR as draft now. |
Okay raised draft PR for the second part at #8003 |
Refactor
string_constantt::get_value
andstring_constantt::set_value
call sites.The functions were marked
DEPRECATED
over thevalue()
calls (they were already working by dispatching tovalue()
, so they were kind of a useless indirection/duplication).