Skip to content

ansi-c: introduce conditional_keyword(c, t) #8621

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
Apr 9, 2025

Conversation

kroening
Copy link
Member

@kroening kroening commented Apr 9, 2025

This introduces a helper function in the C scanner to deal with a larger number of cases to enable or disable keywords of the various C/C++ dialects.

  • 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 Apr 9, 2025

Codecov Report

Attention: Patch coverage is 48.78049% with 42 lines in your changes missing coverage. Please review.

Project coverage is 80.36%. Comparing base (10a14c9) to head (ce7029f).
Report is 4 commits behind head on develop.

Files with missing lines Patch % Lines
src/ansi-c/scanner.l 48.78% 42 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8621      +/-   ##
===========================================
- Coverage    80.38%   80.36%   -0.02%     
===========================================
  Files         1686     1686              
  Lines       206772   206799      +27     
  Branches        85       84       -1     
===========================================
- Hits        166213   166200      -13     
- Misses       40559    40599      +40     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This introduces a helper function in the C scanner to deal with a larger
number of cases to enable or disable keywords of the various C/C++ dialects.
@kroening kroening force-pushed the ansi-c-conditional-keyword branch from 88adbbc to ce7029f Compare April 9, 2025 16:45
@kroening kroening enabled auto-merge April 9, 2025 17:17
@tautschnig tautschnig mentioned this pull request Apr 9, 2025
5 tasks
@kroening kroening merged commit cbe0fb0 into develop Apr 9, 2025
38 of 41 checks passed
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.

2 participants