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

Function unreachableCode_std_terminate

test/cfg/std.cpp:102–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100#endif // __cpp_lib_clamp
101
102void unreachableCode_std_terminate(int &x)
103{
104 std::terminate();
105 // cppcheck-suppress unreachableCode
106 x=42;
107}
108
109bool ignoredReturnValue_std_filesystem_exists(const std::filesystem::path &path, std::error_code& ec)
110{

Callers

nothing calls this directly

Calls 1

terminateFunction · 0.85

Tested by

no test coverage detected