Skip to content

Fix #13769 (TokenList: throw internal error when assertion fails) #7459

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

danmar
Copy link
Owner

@danmar danmar commented Apr 12, 2025

Example output with assert failure:

$ ./cppcheck 1.c
Checking 1.c ...
cppcheck: lib/tokenlist.cpp:60: TokenList::TokenList(const Settings*): Assertion `1==22' failed.
Aborted (core dumped)

Example output if an internal error is thrown instead:

$ ./cppcheck 1.c > /dev/null
1.c:0:0: error: Bailing out from analysis: Checking file failed: lib/tokenlist.cpp:60: Assertion 1==22 failed [internalError]

@danmar danmar requested a review from Copilot April 12, 2025 14:10
Copy link

@Copilot 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 reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

@danmar danmar requested a review from firewave April 12, 2025 17:36
rurban pushed a commit to rurban/cppcheck that referenced this pull request Apr 17, 2025
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.

1 participant