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

Method analyzeRecursive

lib/reverseanalyzer.cpp:139–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137 }
138
139 Analyzer::Action analyzeRecursive(const Token* start) const {
140 Analyzer::Action result = Analyzer::Action::None;
141 visitAstNodes(start, [&](const Token* tok) {
142 result |= analyzer->analyze(tok, Analyzer::Direction::Reverse);
143 if (result.isModified())
144 return ChildrenToVisit::done;
145 return ChildrenToVisit::op1_and_op2;
146 });
147 return result;
148 }
149
150 Analyzer::Action analyzeRange(const Token* start, const Token* end) const {
151 Analyzer::Action result = Analyzer::Action::None;

Callers

nothing calls this directly

Calls 3

visitAstNodesFunction · 0.85
analyzeMethod · 0.80
isModifiedMethod · 0.45

Tested by

no test coverage detected