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

Function getFunctionArgumentValues

lib/valueflow.cpp:5626–5635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5624}
5625
5626static std::list<ValueFlow::Value> getFunctionArgumentValues(const Token* argtok)
5627{
5628 std::list<ValueFlow::Value> argvalues(argtok->values());
5629 removeImpossible(argvalues);
5630 if (argvalues.empty() && Token::Match(argtok, "%comp%|%oror%|&&|!")) {
5631 argvalues.emplace_back(0);
5632 argvalues.emplace_back(1);
5633 }
5634 return argvalues;
5635}
5636
5637static void valueFlowLibraryFunction(Token* tok, const std::string& returnValue, const Settings& settings)
5638{

Callers 2

valueFlowLibraryFunctionFunction · 0.85
valueFlowSubFunctionFunction · 0.85

Calls 2

removeImpossibleFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected