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

Method nullPointerError

lib/checknullpointer.cpp:419–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417}
418
419void CheckNullPointerImpl::nullPointerError(const Token *tok)
420{
421 ValueFlow::Value v(0);
422 v.setKnown();
423 nullPointerError(tok, "", &v, false);
424}
425
426void CheckNullPointerImpl::nullPointerError(const Token *tok, const std::string &varname, const ValueFlow::Value *value, bool inconclusive)
427{

Callers 1

getErrorMessagesMethod · 0.80

Calls 7

isPremiumEnabledMethod · 0.80
isKnownMethod · 0.80
reportErrorFunction · 0.70
diagFunction · 0.70
isEnabledMethod · 0.45
isInconclusiveMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected