Skip to content

Use dstringt::starts_with #8150

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

Merged
merged 1 commit into from
Feb 6, 2024
Merged

Use dstringt::starts_with #8150

merged 1 commit into from
Feb 6, 2024

Conversation

kroening
Copy link
Member

  • Each commit message has a non-empty body, explaining why the change was made.
  • n/a 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).
  • 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 30, 2023

Codecov Report

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

Comparison is base (2d96b83) 79.68% compared to head (5747032) 79.68%.

Files Patch % Lines
src/goto-instrument/goto_program2code.cpp 42.85% 4 Missing ⚠️
src/goto-programs/show_goto_functions_xml.cpp 0.00% 4 Missing ⚠️
src/ansi-c/c_preprocess.cpp 33.33% 2 Missing ⚠️
src/goto-instrument/function.cpp 0.00% 2 Missing ⚠️
src/goto-instrument/race_check.cpp 0.00% 2 Missing ⚠️
src/goto-programs/graphml_witness.cpp 33.33% 2 Missing ⚠️
src/goto-instrument/branch.cpp 0.00% 1 Missing ⚠️
src/pointer-analysis/value_set_fi.cpp 83.33% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8150      +/-   ##
===========================================
- Coverage    79.68%   79.68%   -0.01%     
===========================================
  Files         1681     1681              
  Lines       195296   195294       -2     
===========================================
- Hits        155624   155622       -2     
  Misses       39672    39672              

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

@tautschnig
Copy link
Collaborator

This will break -DUSE_STD_STRING until we switch to c++20. Perhaps we should just document that USE_STD_STRING requires switching to that newer standard?

@kroening
Copy link
Member Author

kroening commented Jan 3, 2024

This will break -DUSE_STD_STRING until we switch to c++20. Perhaps we should just document that USE_STD_STRING requires switching to that newer standard?

I'd like to propose to get rid of it.

@tautschnig
Copy link
Collaborator

This will break -DUSE_STD_STRING until we switch to c++20. Perhaps we should just document that USE_STD_STRING requires switching to that newer standard?

I'd like to propose to get rid of it.

#8154, which I'd propose to merge first, and then rebase this one on top.

Copy link
Collaborator

@tautschnig tautschnig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With #8154 merged this one should be good to go after a rebase.

This replaces has_prefix(id2string(x), y) by x.has_prefix(y).
@tautschnig tautschnig merged commit fe3ec50 into develop Feb 6, 2024
@tautschnig tautschnig deleted the use_starts_with branch February 6, 2024 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants