Skip to content

Comments

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

Closed
danmar wants to merge 2 commits intodanmar:mainfrom
cppchecksolutions:fix-13769
Closed

Fix #13769 (TokenList: throw internal error when assertion fails)#7459
danmar wants to merge 2 commits intodanmar:mainfrom
cppchecksolutions:fix-13769

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 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
@danmar
Copy link
Owner Author

danmar commented May 12, 2025

ASSERT_LANG is not used anymore

@danmar danmar closed this May 12, 2025
@danmar danmar deleted the fix-13769 branch May 12, 2025 08:20
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