-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
C++: Add basic modeling of functions that don't throw #17298
C++: Add basic modeling of functions that don't throw #17298
Conversation
* | ||
* Note: The `throw` specifier was deprecated in C++11 and removed in C++17. | ||
*/ | ||
class NoexceptFunction extends NonThrowingFunction { |
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.
Since the throw()
signifier is deprecated & removed in the C++ standard I decided to just name this class after the noexcept
signifier. This seems simpler than having the name reflect both the signifiers.
If I'm reading the DCA results correctly this PR does not have any effect on the query results for the projects that DCA covers. |
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.
Minor comments, changes and tests otherwise LGTM.
I think we should model a few more functions with this, though as it currently only affects one query it's probably not worth spending too long on it. Perhaps printf
(see Printf
, Fprintf
, Sprintf
), strcpy
(StrcpyFunction
)
and strcat
(StrcatFunction
) would be nice to have as well.
…inor fixes to docs
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.
Otherwise LGTM.
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.
LGTM. :)
Add basic modeling of functions that don't throw.
For now I've just let the classes for the two C functions mentioned in the issue,
memset
andmemcpy
, extend the new class.