edu-show-noexcept

Transform a noexcept function

Default: Off

Examples:

void Fun() noexcept(true)
{
int i = 3;
}
void Fun2() noexcept(false)
{
int i = 3;
}

transforms into this:

#include <exception> // for noexcept transformation
void Fun() noexcept(true)
{
try
{
int i = 3;
} catch(...) {
std::terminate();
}
}
void Fun2() noexcept(false)
{
int i = 3;
}