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

Method getErrorMessages

lib/checkunusedvar.cpp:1737–1745  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1735}
1736
1737void CheckUnusedVar::getErrorMessages(ErrorLogger& errorLogger, const Settings &settings) const
1738{
1739 CheckUnusedVarImpl c(nullptr, settings, errorLogger);
1740 c.unusedVariableError(nullptr, "varname");
1741 c.allocatedButUnusedVariableError(nullptr, "varname");
1742 c.unreadVariableError(nullptr, "varname", false);
1743 c.unassignedVariableError(nullptr, "varname");
1744 c.unusedStructMemberError(nullptr, "structname", "variable");
1745}
1746

Callers

nothing calls this directly

Calls 5

unusedVariableErrorMethod · 0.80
unreadVariableErrorMethod · 0.80

Tested by

no test coverage detected