With Coverity starting to recognize C++11 noexcept
as throw()
,
it is producing spurious false positives in code calling third-party libraries
like Boost.
Moreover, some code deliberately intents to crash on exception
because the exception in that case is unrecoverable, out-of-contract or bug.
An example Coverity report for this case is:
CID 178772 (#1 of 1): Uncaught exception (UNCAUGHT_EXCEPT)exn_spec_violation: An exception of type boost::exception_detail::clone_impl > is thrown but the throw list throw() doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
What is the modelling file to submit to Coverity scan to ignore noexcept
globally?