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

Function isVector

lib/checkstl.cpp:443–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

441}
442
443static bool isVector(const Token* tok)
444{
445 if (!tok)
446 return false;
447 const Variable *var = tok->variable();
448 const Token *decltok = var ? var->typeStartToken() : nullptr;
449 return Token::simpleMatch(decltok, "std :: vector");
450}
451
452void CheckStlImpl::iterators()
453{

Callers 2

iteratorsMethod · 0.85
eraseCheckLoopVarMethod · 0.85

Calls 2

variableMethod · 0.80
simpleMatchFunction · 0.70

Tested by

no test coverage detected