Skip to content

C++: Fix issue with cpp/incorrect-allocation-error-handling#17035

Merged
geoffw0 merged 3 commits into
github:mainfrom
geoffw0:allocerr
Jul 23, 2024
Merged

C++: Fix issue with cpp/incorrect-allocation-error-handling#17035
geoffw0 merged 3 commits into
github:mainfrom
geoffw0:allocerr

Conversation

@geoffw0
Copy link
Copy Markdown
Contributor

@geoffw0 geoffw0 commented Jul 22, 2024

Fix an issue with cpp/incorrect-allocation-error-handling that was causing false positive results. The issue occurs when we new a template type, and the constructor of that type can throw an exception in some instantiations but not in others. In these cases it's reasonable for the code to attempt to catch an exception, even though in some instantiations there cannot be one.

@geoffw0 geoffw0 added the C++ label Jul 22, 2024
@geoffw0 geoffw0 requested a review from a team as a code owner July 22, 2024 15:52
Copy link
Copy Markdown
Contributor

@MathiasVP MathiasVP left a comment

Choose a reason for hiding this comment

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

LGTM if DCA is happy!

@geoffw0
Copy link
Copy Markdown
Contributor Author

geoffw0 commented Jul 23, 2024

Project build failures aside, the two DCA runs LGTM. We lose two results, which appear to be false positives of the kind described above.

@geoffw0 geoffw0 merged commit 1ed5af1 into github:main Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants