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

Function isVariableUsage

lib/checkuninitvar.cpp:1697–1701  ·  view source on GitHub ↗

NOLINTNEXTLINE(readability-non-const-parameter) - used as callback so we need to preserve the signature

Source from the content-addressed store, hash-verified

1695
1696// NOLINTNEXTLINE(readability-non-const-parameter) - used as callback so we need to preserve the signature
1697static bool isVariableUsage(const Settings &settings, const Token *vartok, MathLib::bigint *value)
1698{
1699 (void)value;
1700 return !!CheckUninitVarImpl::isVariableUsage(vartok, settings.library, true, CheckUninitVarImpl::Alloc::ARRAY);
1701}
1702
1703// a Clang-built executable will crash when using the anonymous MyFileInfo later on - so put it in a unique namespace for now
1704// see https://trac.cppcheck.net/ticket/12108 for more details

Callers 8

valueFlowSubFunctionFunction · 0.85
checkScopeForVariableMethod · 0.85
checkExprMethod · 0.85
checkIfForWhileHeadMethod · 0.85
checkRhsMethod · 0.85
isVariableUsageMethod · 0.85
isMemberVariableUsageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected