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

Method isArrayOrPointer

lib/checkio.cpp:1694–1705  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1692}
1693
1694bool CheckIOImpl::ArgumentInfo::isArrayOrPointer() const
1695{
1696 if (address)
1697 return true;
1698 if (variableInfo && !_template)
1699 return variableInfo->isArrayOrPointer();
1700
1701 const Token *tok = typeToken;
1702 while (Token::Match(tok, "const|struct"))
1703 tok = tok->next();
1704 return tok && tok->strAt(1) == "*";
1705}
1706
1707bool CheckIOImpl::ArgumentInfo::isComplexType() const
1708{

Callers 11

parseFunctionCallMethod · 0.80
checkFormatStringMethod · 0.80
isComplexTypeMethod · 0.80
checkStructVariableMethod · 0.80
checkVariableCallMatchFunction · 0.80
checkInnerScopeMethod · 0.80
getUnsafeFunctionFunction · 0.80
if_findMethod · 0.80
checkMemsetMethod · 0.80
checkConstFuncMethod · 0.80
varTypesFloatingMethod · 0.80

Calls 1

nextMethod · 0.80

Tested by 1

varTypesFloatingMethod · 0.64