codeql-coding-standards
codeql-coding-standards copied to clipboard
`A15-2-2`: Add test cases for `std::nothrow` new calls
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.