Skip to content

Add cpplint warnings for exit() and abort()#8738

Open
tautschnig wants to merge 1 commit intodiffblue:developfrom
tautschnig:cpplint-exit-abort
Open

Add cpplint warnings for exit() and abort()#8738
tautschnig wants to merge 1 commit intodiffblue:developfrom
tautschnig:cpplint-exit-abort

Conversation

@tautschnig
Copy link
Collaborator

Our code should only terminate normally via return from main, or abnormally via the macros from invariant.h.

While at it, also fixes some warnings about cpplint.py's code.

Fixes: #1902

  • 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.
  • 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.

@tautschnig tautschnig requested a review from a team as a code owner November 26, 2025 10:43
@codecov
Copy link

codecov bot commented Nov 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.01%. Comparing base (bacf91c) to head (cee9fdf).
⚠️ Report is 2 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8738      +/-   ##
===========================================
- Coverage    80.01%   80.01%   -0.01%     
===========================================
  Files         1700     1700              
  Lines       188344   188345       +1     
  Branches        73       73              
===========================================
- Hits        150701   150700       -1     
- Misses       37643    37645       +2     

☔ 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.

Copilot AI review requested due to automatic review settings March 10, 2026 09:14
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@tautschnig tautschnig requested a review from Copilot March 10, 2026 10:07
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Our code should only terminate normally via return from main, or
abnormally via the macros from `invariant.h`.

While at it, also fixes some warnings about cpplint.py's code.

Fixes: diffblue#1902
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.

cpplint should warn about any use of exit() or abort()

3 participants