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

Method uninitdataError

lib/checkuninitvar.cpp:1553–1556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1551}
1552
1553void CheckUninitVarImpl::uninitdataError(const Token *tok, const std::string &varname)
1554{
1555 reportError(tok, Severity::error, "uninitdata", "$symbol:" + varname + "\nMemory is allocated but not initialized: $symbol", CWE_USE_OF_UNINITIALIZED_VARIABLE, Certainty::normal);
1556}
1557
1558void CheckUninitVarImpl::uninitvarError(const Token *tok, const std::string &varname, ErrorPath errorPath)
1559{

Callers 1

getErrorMessagesMethod · 0.80

Calls 1

reportErrorFunction · 0.70

Tested by

no test coverage detected