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

Function analyzeRange

lib/forwardanalyzer.cpp:307–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305 }
306
307 Analyzer::Action analyzeRange(const Token* start, const Token* end) const {
308 Analyzer::Action result = Analyzer::Action::None;
309 for (const Token* tok = start; tok && tok != end; tok = tok->next()) {
310 Analyzer::Action action = analyzer->analyze(tok, Analyzer::Direction::Forward);
311 if (action.isModified() || action.isInconclusive())
312 return action;
313 result |= action;
314 }
315 return result;
316 }
317
318 ForwardTraversal fork(bool analyze = false) const {
319 ForwardTraversal ft = *this;

Callers 2

traverseMethod · 0.85
analyzeScopeFunction · 0.85

Calls 4

nextMethod · 0.80
analyzeMethod · 0.80
isModifiedMethod · 0.45
isInconclusiveMethod · 0.45

Tested by

no test coverage detected