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

Method unusedStructMemberError

lib/checkunusedvar.cpp:1702–1705  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1700}
1701
1702void CheckUnusedVarImpl::unusedStructMemberError(const Token* tok, const std::string& structname, const std::string& varname, const std::string& prefix)
1703{
1704 reportError(tok, Severity::style, "unusedStructMember", "$symbol:" + structname + "::" + varname + '\n' + prefix + " member '$symbol' is never used.", CWE563, Certainty::normal);
1705}
1706
1707bool CheckUnusedVarImpl::isEmptyType(const Type* type)
1708{

Callers 1

getErrorMessagesMethod · 0.80

Calls 1

reportErrorFunction · 0.70

Tested by

no test coverage detected