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

Method uninitStructMemberError

lib/checkuninitvar.cpp:1608–1614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1606}
1607
1608void CheckUninitVarImpl::uninitStructMemberError(const Token *tok, const std::string &membername)
1609{
1610 reportError(tok,
1611 Severity::error,
1612 "uninitStructMember",
1613 "$symbol:" + membername + "\nUninitialized struct member: $symbol", CWE_USE_OF_UNINITIALIZED_VARIABLE, Certainty::normal);
1614}
1615
1616void CheckUninitVarImpl::valueFlowUninit()
1617{

Callers 1

getErrorMessagesMethod · 0.80

Calls 1

reportErrorFunction · 0.70

Tested by

no test coverage detected