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

Function fork

lib/forwardanalyzer.cpp:318–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316 }
317
318 ForwardTraversal fork(bool analyze = false) const {
319 ForwardTraversal ft = *this;
320 if (analyze) {
321 ft.analyzeOnly = true;
322 ft.analyzeTerminate = true;
323 }
324 ft.actions = Analyzer::Action::None;
325 return ft;
326 }
327
328 std::vector<ForwardTraversal> tryForkScope(Token* endBlock, bool isModified = false) const {
329 if (analyzer->updateScope(endBlock, isModified)) {

Callers 5

tryForkScopeFunction · 0.85
checkBranchFunction · 0.85
reentersLoopFunction · 0.85
updateRangeFunction · 0.85
checkMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected