-
Notifications
You must be signed in to change notification settings - Fork 277
Coding standard: Deprecation rules #4424
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
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.
What's the scope of this rule? code
seems too general to be a useful guidance.
Good point - would "API" work? Or "public API?" |
What that be anything declared in a header file? |
In C++ it's really hard to pin down what is/isn't (part of) an API. I'd say anything that is meant to be used outside a module, where I would consider as "module" a directory. |
``` | ||
marks `deprecated_method` as deprecated as of 2019-01-31. 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. | ||
|
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 would perhaps add "or marked as deprecated".
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.
✔️
Passed Diffblue compatibility checks (cbmc commit: b39726b).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/105538719
That's not a property of C++, but of how we structure the code base.
Please add this definition to make it a bit clearer. |
Thus far, we operated an informal deprecation policy. This codifies our informal six-months rule.
This provides a broad guideline what an interface is and how to maintain it.
b39726b
to
f3a8371
Compare
I have made some changes to the wording and added a second commit that codifies the idea of an interface. |
We might discuss this a bit more, but that's likely more efficient over drinks than via GitHub... |
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.
✔️
Passed Diffblue compatibility checks (cbmc commit: f3a8371).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/105539964
How does this fit with the release cycle? If we are deprecating user-facing functionality should we give them at least one release where it has a warning? |
I think we were aiming for one release per quarter, so we should have one or two releases in between. But I'm not sure we are currently on track for quarterly releases... |
On Sat, 2019-03-23 at 15:20 -0700, Michael Tautschnig wrote:
> How does this fit with the release cycle?
I think we were aiming for one release per quarter, so we should have
one or two releases in between. But I'm not sure we are currently on
track for quarterly releases...
This seems reasonable. I guess there is a bit of a difference between
internal APIs used for tools based on CPROVER and user-facing features.
|
Thus far, we operated an informal deprecation policy. This codifies our
informal six-months rule.
This has a soft dependency on #4423 as the
SINCE
macro will only be available once that PR is merged.