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

Replace all uses of deprecated functions by non-deprecated ones [depends-on: #5621, #5587, #5599, #4050] #3800

Open
wants to merge 16 commits into
base: develop
Choose a base branch
from

Conversation

tautschnig
Copy link
Collaborator

This is currently in proof-of-concept stage with all changes in a single commit: I've tried to figure out what it would take to get rid of all the uses of deprecated functions. I will over time create individual commits and PRs that resolve one function at a time.

  • Each commit message has a non-empty body, explaining why the change was made.
  • Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • The feature or user visible behaviour I have added or modified has been documented in the User Guide in doc/cprover-manual/
  • Regression or unit tests are included, or existing tests cover the modified code (in this case I have detailed which ones those are in the commit message).
  • My commit message includes data points confirming performance improvements (if claimed).
  • My PR is restricted to a single feature or bugfix.
  • White-space or formatting changes outside the feature-related changed lines are in commits of their own.

@martin-cs
Copy link
Collaborator

What, if any, reviewing do you want on this? It seems quite a few parts have already been split out and merged.

tautschnig added a commit that referenced this pull request Jan 22, 2019
Construct parametert in a non-deprecated way [blocks: #3800]
tautschnig added a commit that referenced this pull request Jan 23, 2019
Use numeric_cast_v<unsigned> instead to_ulong with incompatible types [blocks: #3800]
tautschnig added a commit that referenced this pull request Jan 23, 2019
Use non-deprecated variants of read_goto_binary [blocks: #3800]
tautschnig added a commit that referenced this pull request Jan 23, 2019
Use non-trivial constructor of code_function_callt [blocks: #3800]
tautschnig added a commit that referenced this pull request Jan 24, 2019
Use conjunction instead of piecewise construction of and_exprt [blocks: #3800]
tautschnig added a commit that referenced this pull request Jan 24, 2019
Construct complex_typet in a non-deprecated way [blocks: #3800]
tautschnig added a commit that referenced this pull request Jan 26, 2019
…hable

Remove unreachable statement [blocks: #3800]
tautschnig added a commit that referenced this pull request Jan 26, 2019
Replace use of deprecated nil_typet in c_sizeof_type_rec [blocks: #3800]
tautschnig added a commit that referenced this pull request Jan 26, 2019
Replace use of deprecated nil_typet in c_bit_field_replacement_type [blocks: #3800]
tautschnig added a commit that referenced this pull request Jan 27, 2019
Avoid default constructing code_ifthenelset [blocks: #3800]
tautschnig added a commit that referenced this pull request Jan 27, 2019
smt2 id_map: Do not use nil_typet when we mean "optional" [blocks: #3800]
@tautschnig tautschnig reopened this May 4, 2023
thomasspriggs added a commit that referenced this pull request Dec 12, 2023
languaget is not a messaget [blocks: #3800]
@thomasspriggs
Copy link
Collaborator

@tautschnig Looks like this now needs rebasing.

There is no need to access the parser object when the same information
is available directly from `config`.
Thread through a Boolean flag rather than relying on the parser object
far away from the actual parser.
This is to provide a path to remove the long-deprecated messaget()
constructor. Uses of this new constructor will be added in separate
commits.
This both avoids an object of static lifetime as well as it fixes the
(transitive) use of the deprecated messaget() constructor.
This both avoids an object of static lifetime as well as it fixes the
(transitive) use of the deprecated messaget() constructor.
This both avoids an object of static lifetime as well as it fixes the
(transitive) use of the deprecated messaget() constructor.
This both avoids an object of static lifetime as well as it fixes the
(transitive) use of the deprecated messaget() constructor.
This both avoids an object of static lifetime as well as it fixes the
(transitive) use of the deprecated messaget() constructor.
This both avoids an object of static lifetime as well as it fixes the
(transitive) use of the deprecated messaget() constructor.
This both avoids an object of static lifetime as well as it fixes the
(transitive) use of the deprecated messaget() constructor.
This both avoids an object of static lifetime as well as it fixes the
(transitive) use of the deprecated messaget() constructor.
It is now no longer possible to construct a messaget object that is not
fully configured, i.e., lacks a message handler.
All uses of deprecated functions have been replaced.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants