MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / ~OnException

Method ~OnException

lib/tokenlist.cpp:1921–1931  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1919 std::function<void()> f;
1920
1921 ~OnException() {
1922#ifndef _MSC_VER
1923#if defined(__cpp_lib_uncaught_exceptions)
1924 const bool b = std::uncaught_exceptions() > 0;
1925#else
1926 const bool b = std::uncaught_exception();
1927#endif
1928 if (b)
1929 f();
1930#endif
1931 }
1932 };
1933}
1934

Callers

nothing calls this directly

Calls 1

fFunction · 0.50

Tested by

no test coverage detected