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

Function isNonReferenceArg

lib/checkautovariables.cpp:70–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70static bool isNonReferenceArg(const Token *tok)
71{
72 const Variable *var = tok->variable();
73 return (var && var->isArgument() && !var->isReference() && (var->isPointer() || (var->valueType() && var->valueType()->type >= ValueType::Type::CONTAINER) || var->type()));
74}
75
76static bool isAutoVar(const Token *tok)
77{

Callers 1

assignFunctionArgMethod · 0.85

Calls 2

variableMethod · 0.80
typeMethod · 0.80

Tested by

no test coverage detected