-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Fix #14195 main throws an exception #7887
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
base: main
Are you sure you want to change the base?
Conversation
|
Do we need to do something with the new id? |
Beside triggering it from |
|
|
|
||
| void CheckExceptionSafety::entryPointThrowError(const Token * const tok) | ||
| { | ||
| reportError(tok, Severity::error, "throwInEntryPoint", "Exception thrown in function that is an entry point.", CWE398, Certainty::normal); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest something like:
Unhandled exception is thrown in function that is an entry point.
We only warn if it's unhandled right?
This is undefined behavior right? To throw an exception that is not catched..



No description provided.