forked from htdy/calltree
-
Notifications
You must be signed in to change notification settings - Fork 0
calltree for c
License
leeqx/calltree
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
calltree - static call tree generator for C programs
The calltree command parses a collection of input files
(assuming C syntax) and builds a graph that represents the
static call structure of these files.
Calltree is similar to cflow(1) but unlike cflow(1),
calltree is not based on lint(1). Calltree implements some
more functions than cflow(1), but does not list the return
types of the functions. This is because calltree includes an
own C parser and thus may be used even on systems that don't
have lint(1). The disadvantage is that the C parser that is
used by calltree is not completely correct and may not find
all calls of a function. This is mainly true for calls that
are done via function pointers.
Calltree is able to detect recursive function calls (e.g.
functions that call themselves). Recursive function calls
are marked with an ellipsis in the output.
find . -name "*.[c|h]" |xargs sed -i -e "s/fexecve/fexecve_calltree/"
find . -name "*.[c|h]" |xargs sed -i -e "s/getline/getline_calltree/"
About
calltree for c
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- C 59.8%
- M4 26.1%
- Shell 5.9%
- Roff 1.9%
- Starlark 1.7%
- Makefile 1.1%
- Other 3.5%