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

Function isArrayArg

lib/checkautovariables.cpp:52–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52static bool isArrayArg(const Token *tok, const Settings& settings)
53{
54 const Variable *var = tok->variable();
55 return (var && var->isArgument() && var->isArray() && (!var->scope() || !settings.library.isentrypoint(var->scope()->className)));
56}
57
58static bool isArrayVar(const Token *tok)
59{

Callers 1

autoVariablesMethod · 0.85

Calls 4

variableMethod · 0.80
isArrayMethod · 0.80
scopeMethod · 0.80
isentrypointMethod · 0.80

Tested by

no test coverage detected