Is there a tool that will detect a recursive function call in C code?

I need to look for and eliminate recursive function calls in an inherited code base. So far, I have not been able to find a tool that will perform static analysis and find these functions.

+2
source share
3 answers

You might want to try cflow :

The cflow utility should analyze the collection of object files or assembler, C-language, lex or yacc source files and try to build a graph written to standard output by drawing external links.

It should print a callgraph and tag the recursive functions.

+5
source

, (, , , ).

, . , ( ), ( ).

( , Linux) , , . , , .

, ...

+4

CIL CFG C, , .

0

Source: https://habr.com/ru/post/1681798/


All Articles