[cfe-dev] Multiple root nodes for CallGraph?

Arjun Singri arjunsingri at gmail.com
Fri Sep 30 12:58:43 PDT 2011


Hi,

I am currently trying to implement a checker that detects unused methods. I
am making use of the CallGraph class for this. Every time CallGraph detects
the "main" function, it designates it as the root node. Considering that
scan-build accepts multiple files each having a main function, does it make
sense to modify CallGraph to have mutlple root nodes?

Thanks,
Arjun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110930/13419663/attachment.html>


More information about the cfe-dev mailing list