codeql-coding-standards icon indicating copy to clipboard operation
codeql-coding-standards copied to clipboard

`A15-2-2`: Add test cases for `std::nothrow` new calls

Open lcartey opened this issue 2 years ago • 0 comments

Affected rules

  • A15-2-2

Description

A15-2-2 customizes the exception flow model to represent that new calls may throw a std::bad_alloc exception. This code correctly handles the case that a noexcept constructor is called, but should be expanded to include a test case.

lcartey avatar Jul 26 '22 12:07 lcartey