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

Function isUnsafeUsage

lib/checknullpointer.cpp:577–582  ·  view source on GitHub ↗

NOLINTNEXTLINE(readability-non-const-parameter) - used as callback so we need to preserve the signature

Source from the content-addressed store, hash-verified

575
576// NOLINTNEXTLINE(readability-non-const-parameter) - used as callback so we need to preserve the signature
577static bool isUnsafeUsage(const Settings &settings, const Token *vartok, CTU::FileInfo::Value *value)
578{
579 (void)value;
580 bool unknown = false;
581 return CheckNullPointerImpl::isPointerDeRef(vartok, unknown, settings);
582}
583
584// a Clang-built executable will crash when using the anonymous MyFileInfo later on - so put it in a unique namespace for now
585// see https://trac.cppcheck.net/ticket/12108 for more details

Callers 1

getUnsafeFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected