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

Method returnsVoid

lib/symboldatabase.cpp:3398–3403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3396}
3397
3398bool Function::returnsVoid(const Function* function, bool unknown)
3399{
3400 return checkReturns(function, unknown, true, [](const Token* /*defStart*/, const Token* defEnd) {
3401 return Token::simpleMatch(defEnd->previous(), "void");
3402 });
3403}
3404
3405std::vector<const Token*> Function::findReturns(const Function* f)
3406{

Callers

nothing calls this directly

Calls 2

checkReturnsFunction · 0.85
simpleMatchFunction · 0.70

Tested by

no test coverage detected