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

Method returnsPointer

lib/symboldatabase.cpp:3384–3389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3382}
3383
3384bool Function::returnsPointer(const Function* function, bool unknown)
3385{
3386 return checkReturns(function, unknown, false, [](const Token* /*defStart*/, const Token* defEnd) {
3387 return Token::simpleMatch(defEnd->previous(), "*");
3388 });
3389}
3390
3391bool Function::returnsStandardType(const Function* function, bool unknown)
3392{

Callers

nothing calls this directly

Calls 2

checkReturnsFunction · 0.85
simpleMatchFunction · 0.70

Tested by

no test coverage detected