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

statement_list_parsert: construct with message handler #8138

Merged

Conversation

tautschnig
Copy link
Collaborator

This both avoids an object of static lifetime as well as it fixes the (transitive) use of the deprecated messaget() constructor.

  • 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.
  • n/a 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).
  • n/a My commit message includes data points confirming performance improvements (if claimed).
  • My PR is restricted to a single feature or bugfix.
  • n/a White-space or formatting changes outside the feature-related changed lines are in commits of their own.

Copy link

codecov bot commented Dec 20, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (fd28cb2) 79.09% compared to head (1434e97) 79.09%.

Files Patch % Lines
src/statement-list/parser.y 0.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8138      +/-   ##
===========================================
- Coverage    79.09%   79.09%   -0.01%     
===========================================
  Files         1695     1696       +1     
  Lines       196589   196596       +7     
===========================================
+ Hits        155493   155496       +3     
- Misses       41096    41100       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tautschnig tautschnig marked this pull request as ready for review December 20, 2023 16:23
@tautschnig tautschnig force-pushed the cleanup/statement_list_parsert branch from 647ea51 to cb1f557 Compare January 9, 2024 11:10
@tautschnig tautschnig marked this pull request as draft January 9, 2024 14:53
@tautschnig
Copy link
Collaborator Author

Keeping as draft until reentrancy questions are settled in #8153.

This both avoids an object of static lifetime as well as it fixes the
(transitive) use of the deprecated messaget() constructor. Avoid global
objects in the lexer (as side-effect making it reentrant) as
initialisation is required. The parser continues to have global state,
so guard against reentrant use.
@tautschnig tautschnig force-pushed the cleanup/statement_list_parsert branch from cb1f557 to 1434e97 Compare January 12, 2024 12:50
@tautschnig tautschnig marked this pull request as ready for review January 12, 2024 12:51
@tautschnig
Copy link
Collaborator Author

Now uses the same style of guards as agreed for JSIL in #8153.

@tautschnig tautschnig merged commit 7232457 into diffblue:develop Mar 15, 2024
38 of 39 checks passed
@tautschnig tautschnig deleted the cleanup/statement_list_parsert branch March 15, 2024 10:38
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.

3 participants