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

Method isPointerArray

lib/symboldatabase.cpp:2511–2519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2509}
2510
2511bool Variable::isPointerArray() const
2512{
2513 if (!isArray())
2514 return false;
2515 const Token* tok = nameToken() ? nameToken()->previous() : nullptr;
2516 while (Token::Match(tok, "const|volatile"))
2517 tok = tok->previous();
2518 return Token::simpleMatch(tok, "*");
2519}
2520
2521bool Variable::isUnsigned() const
2522{

Calls 3

isArrayFunction · 0.85
nameTokenFunction · 0.85
simpleMatchFunction · 0.70