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

Method analyzeRange

lib/reverseanalyzer.cpp:150–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148 }
149
150 Analyzer::Action analyzeRange(const Token* start, const Token* end) const {
151 Analyzer::Action result = Analyzer::Action::None;
152 for (const Token* tok = start; tok && tok != end; tok = tok->next()) {
153 Analyzer::Action action = analyzer->analyze(tok, Analyzer::Direction::Reverse);
154 if (action.isModified())
155 return action;
156 result |= action;
157 }
158 return result;
159 }
160
161 Token* isDeadCode(Token* tok, const Token* end = nullptr) const {
162 int opSide = 0;

Callers

nothing calls this directly

Calls 3

nextMethod · 0.80
analyzeMethod · 0.80
isModifiedMethod · 0.45

Tested by

no test coverage detected