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

Function isContainerSizeChanged

lib/valueflow.cpp:6272–6286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6270}
6271
6272static bool isContainerSizeChanged(const Token* expr,
6273 const Token* start,
6274 const Token* end,
6275 int indirect,
6276 const Settings& settings,
6277 int depth)
6278{
6279 for (const Token *tok = start; tok != end; tok = tok->next()) {
6280 if (tok->exprId() != expr->exprId() && !isAliasOf(tok, expr))
6281 continue;
6282 if (ValueFlow::isContainerSizeChanged(tok, indirect, settings, depth))
6283 return true;
6284 }
6285 return false;
6286}
6287
6288static void valueFlowSmartPointer(TokenList &tokenlist, ErrorLogger & errorLogger, const Settings &settings)
6289{

Callers 4

isModifiedMethod · 0.85
executeImplMethod · 0.85

Calls 2

nextMethod · 0.80
isAliasOfFunction · 0.70

Tested by

no test coverage detected