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

Function makeAnalyzer

lib/vf_analyzers.cpp:1599–1605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1597}
1598
1599ValuePtr<Analyzer> makeAnalyzer(const Token* exprTok, ValueFlow::Value value, const Settings& settings)
1600{
1601 if (value.isContainerSizeValue())
1602 return ContainerExpressionAnalyzer(exprTok, std::move(value), settings);
1603 const Token* expr = solveExprValue(exprTok, value);
1604 return ExpressionAnalyzer(expr, std::move(value), settings);
1605}
1606
1607ValuePtr<Analyzer> makeReverseAnalyzer(const Token* exprTok, ValueFlow::Value value, const Settings& settings)
1608{

Callers 3

valueFlowForwardFunction · 0.85
reanalyzeMethod · 0.85

Calls 3

solveExprValueFunction · 0.85
ExpressionAnalyzerClass · 0.85

Tested by

no test coverage detected