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

Method update

lib/reverseanalyzer.cpp:60–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 }
59
60 bool update(Token* tok) {
61 Analyzer::Action action = analyzer->analyze(tok, Analyzer::Direction::Reverse);
62 if (action.isInconclusive() && !analyzer->lowerToInconclusive())
63 return false;
64 if (action.isInvalid())
65 return false;
66 if (!action.isNone())
67 analyzer->update(tok, action, Analyzer::Direction::Reverse);
68 return true;
69 }
70
71 static Token* getParentFunction(Token* tok)
72 {

Callers

nothing calls this directly

Calls 3

analyzeMethod · 0.80
isInconclusiveMethod · 0.45
lowerToInconclusiveMethod · 0.45

Tested by

no test coverage detected