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

Function functionModifiesArguments

lib/astutils.cpp:2039–2044  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2037}
2038
2039static bool functionModifiesArguments(const Function* f)
2040{
2041 return std::any_of(f->argumentList.cbegin(), f->argumentList.cend(), [](const Variable& var) {
2042 return var.isReference() && !var.isConst();
2043 });
2044}
2045
2046bool isConstFunctionCall(const Token* ftok, const Library& library)
2047{

Callers 1

isConstFunctionCallFunction · 0.85

Calls 1

isConstMethod · 0.80

Tested by

no test coverage detected