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

Method isComplexType

lib/checkio.cpp:1707–1717  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1705}
1706
1707bool CheckIOImpl::ArgumentInfo::isComplexType() const
1708{
1709 if (variableInfo->type())
1710 return true;
1711
1712 const Token* varTypeTok = typeToken;
1713 if (varTypeTok->str() == "std")
1714 varTypeTok = varTypeTok->tokAt(2);
1715
1716 return ((variableInfo->isStlStringType() || (varTypeTok->strAt(1) == "<" && varTypeTok->linkAt(1) && varTypeTok->linkAt(1)->strAt(1) != "::")) && !variableInfo->isArrayOrPointer());
1717}
1718
1719bool CheckIOImpl::ArgumentInfo::isKnownType() const
1720{

Callers

nothing calls this directly

Calls 5

typeMethod · 0.80
linkAtMethod · 0.80
isArrayOrPointerMethod · 0.80
strMethod · 0.45
tokAtMethod · 0.45

Tested by

no test coverage detected