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

Function isPtrArg

lib/checkautovariables.cpp:46–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44static const CWE CWE590(590U); // Free of Memory not on the Heap
45
46static bool isPtrArg(const Token *tok)
47{
48 const Variable *var = tok->variable();
49 return (var && var->isArgument() && var->isPointer());
50}
51
52static bool isArrayArg(const Token *tok, const Settings& settings)
53{

Callers 2

isMemberAssignmentFunction · 0.85
autoVariablesMethod · 0.85

Calls 1

variableMethod · 0.80

Tested by

no test coverage detected