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

Function isRecursiveCall

lib/checkunusedfunctions.cpp:63–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61//---------------------------------------------------------------------------
62
63static bool isRecursiveCall(const Token* ftok)
64{
65 return ftok->function() && ftok->function() == Scope::nestedInFunction(ftok->scope());
66}
67
68void CheckUnusedFunctions::parseTokens(const Tokenizer &tokenizer, const Settings &settings)
69{

Callers 1

parseTokensMethod · 0.85

Calls 3

nestedInFunctionFunction · 0.85
scopeMethod · 0.80
functionMethod · 0.45

Tested by

no test coverage detected