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

Function valueFlowReverse

lib/valueflow.cpp:1353–1372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1351}
1352
1353static void valueFlowReverse(Token* tok,
1354 const Token* const endToken,
1355 const Token* const varToken,
1356 std::list<ValueFlow::Value> values,
1357 const TokenList& tokenlist,
1358 ErrorLogger& errorLogger,
1359 const Settings& settings,
1360 SourceLocation loc = SourceLocation::current())
1361{
1362 for (ValueFlow::Value& v : values) {
1363 if (settings.debugnormal)
1364 setSourceLocation(v, loc, tok);
1365 valueFlowGenericReverse(tok,
1366 endToken,
1367 makeReverseAnalyzer(varToken, std::move(v), settings),
1368 tokenlist,
1369 errorLogger,
1370 settings);
1371 }
1372}
1373
1374// Deprecated
1375static void valueFlowReverse(const TokenList& tokenlist,

Callers 2

reverseMethod · 0.85
valueFlowSwitchVariableFunction · 0.85

Calls 3

setSourceLocationFunction · 0.85
valueFlowGenericReverseFunction · 0.85
makeReverseAnalyzerFunction · 0.85

Tested by

no test coverage detected