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

Function uninitvarError

lib/checkuninitvar.h:121–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119 void uninitdataError(const Token *tok, const std::string &varname);
120 void uninitvarError(const Token *tok, const std::string &varname, ErrorPath errorPath);
121 void uninitvarError(const Token *tok, const std::string &varname) {
122 uninitvarError(tok, varname, ErrorPath{});
123 }
124 void uninitvarError(const Token *tok, const std::string &varname, Alloc alloc) {
125 if (alloc == NO_CTOR_CALL || alloc == CTOR_CALL)
126 uninitdataError(tok, varname);

Callers 5

checkScopeForVariableMethod · 0.85
checkIfForWhileHeadMethod · 0.85
checkLoopBodyMethod · 0.85
checkRhsMethod · 0.85
valueFlowUninitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected