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

xml_parsert: construct with message handler #8135

Merged
merged 1 commit into from
Mar 15, 2024

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: Patch coverage is 77.27273% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 79.65%. Comparing base (7232457) to head (9f01d3e).
Report is 2 commits behind head on develop.

Files Patch % Lines
src/xmllang/parser.y 0.00% 2 Missing ⚠️
src/xmllang/xml_parser.h 81.81% 2 Missing ⚠️
src/xmllang/scanner.l 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8135      +/-   ##
===========================================
- Coverage    79.66%   79.65%   -0.01%     
===========================================
  Files         1683     1684       +1     
  Lines       195551   195563      +12     
===========================================
- Hits        155777   155772       -5     
- Misses       39774    39791      +17     

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

@tautschnig
Copy link
Collaborator Author

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

@tautschnig tautschnig marked this pull request as ready for review January 12, 2024 12:46
@tautschnig
Copy link
Collaborator Author

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

src/xmllang/xml_parser.h Show resolved Hide resolved
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 merged commit 8560cdc into diffblue:develop Mar 15, 2024
37 of 39 checks passed
@tautschnig tautschnig deleted the cleanup/xml_parsert branch March 15, 2024 12:18
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