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

Function valueFlowForwardRecursive

lib/valueflow.cpp:1335–1351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1333}
1334
1335static Analyzer::Result valueFlowForwardRecursive(Token* top,
1336 const Token* exprTok,
1337 std::list<ValueFlow::Value> values,
1338 const TokenList& tokenlist,
1339 ErrorLogger& errorLogger,
1340 const Settings& settings,
1341 SourceLocation loc = SourceLocation::current())
1342{
1343 Analyzer::Result result{};
1344 for (ValueFlow::Value& v : values) {
1345 if (settings.debugnormal)
1346 setSourceLocation(v, loc, top);
1347 result.update(
1348 valueFlowGenericForward(top, makeAnalyzer(exprTok, std::move(v), settings), tokenlist, errorLogger, settings));
1349 }
1350 return result;
1351}
1352
1353static void valueFlowReverse(Token* tok,
1354 const Token* const endToken,

Callers 1

forwardMethod · 0.85

Calls 4

setSourceLocationFunction · 0.85
valueFlowGenericForwardFunction · 0.85
makeAnalyzerFunction · 0.85
updateMethod · 0.45

Tested by

no test coverage detected