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

Method returnsConst

lib/symboldatabase.cpp:3370–3375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3368}
3369
3370bool Function::returnsConst(const Function* function, bool unknown)
3371{
3372 return checkReturns(function, unknown, false, [](const Token* defStart, const Token* defEnd) {
3373 return Token::findsimplematch(defStart, "const", defEnd);
3374 });
3375}
3376
3377bool Function::returnsReference(const Function* function, bool unknown, bool includeRValueRef)
3378{

Callers

nothing calls this directly

Calls 2

checkReturnsFunction · 0.85
findsimplematchFunction · 0.85

Tested by

no test coverage detected