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

Function nestedInFunction

lib/symboldatabase.h:1105–1114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1103 }
1104
1105 static Function* nestedInFunction(const Scope* scope) {
1106 while (scope) {
1107 if (scope->type == ScopeType::eFunction)
1108 break;
1109 scope = scope->nestedIn;
1110 }
1111 if (!scope)
1112 return nullptr;
1113 return scope->function;
1114 }
1115
1116 bool isClassOrStruct() const {
1117 return (type == ScopeType::eClass || type == ScopeType::eStruct);

Callers 5

valueFlowForwardFunction · 0.85
isRecursiveCallFunction · 0.85
checkConstPointerMethod · 0.85
isDanglingSubFunctionFunction · 0.85
findExpressionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected