Descend into for loops when determining call graph.

This commit is contained in:
chriseth 2019-12-17 13:40:42 +01:00
parent 01f1aaa4c7
commit 7b84e141dc

View File

@ -50,9 +50,10 @@ void CallGraphGenerator::operator()(FunctionCall const& _functionCall)
ASTWalker::operator()(_functionCall);
}
void CallGraphGenerator::operator()(ForLoop const&)
void CallGraphGenerator::operator()(ForLoop const& _forLoop)
{
m_callGraph.functionsWithLoops.insert(m_currentFunction);
ASTWalker::operator()(_forLoop);
}
void CallGraphGenerator::operator()(FunctionDefinition const& _functionDefinition)