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

Function updateScope

lib/forwardanalyzer.cpp:565–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

563 }
564
565 Progress updateScope(Token* endBlock, int depth = 20)
566 {
567 if (!endBlock)
568 return Break();
569 assert(endBlock->link());
570 Token* ctx = endBlock->link()->previous();
571 if (Token::simpleMatch(ctx, ")"))
572 ctx = ctx->link()->previous();
573 if (ctx)
574 analyzer->updateState(ctx);
575 return updateRange(endBlock->link(), endBlock, depth);
576 }
577
578 /**
579 * @throws InternalError thrown on cyclic analysis

Callers 3

updateInnerLoopFunction · 0.85
updateLoopFunction · 0.85
updateRangeFunction · 0.85

Calls 3

BreakFunction · 0.85
updateRangeFunction · 0.85
simpleMatchFunction · 0.70

Tested by

no test coverage detected