https://github.com/haoNoQ commented:

> If that is an issue, one way to do this "properly" would be to create a graph

Note that we do have a 
[`CallGraph`](https://clang.llvm.org/doxygen/classclang_1_1CallGraph.html) 
class. The static analyzer uses it to identify top-level entry points. It 
doesn't look like it has a readily available solution for identifying recursive 
functions. But it may be a good idea to simply use the class and implement it 
there.

https://github.com/llvm/llvm-project/pull/91876
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to