diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2019-02-10 15:26:03 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2019-02-10 15:26:03 +0200 |
commit | b85e6151264722dcaf7dcd1ec2a75bcee295512c (patch) | |
tree | f30c25a60b37097cff69cee25f0deb54d7954145 /doc/cflow.texi | |
parent | b4038ea16c1709367f5c84939919785686481b55 (diff) | |
download | cflow-b85e6151264722dcaf7dcd1ec2a75bcee295512c.tar.gz cflow-b85e6151264722dcaf7dcd1ec2a75bcee295512c.tar.bz2 |
Finish implementation of --all
* doc/cflow.1: Document the --all --all behavior
* doc/cflow.texi: Likewise.
* src/main.c: Increment all_functions for each -A option.
* src/output.c (tree_output): If one --all option is used, output graphs
for all top-level functions (i.e. functions, not reachable from other ones).
If used twice, output graphs for all global function.
* tests/all.at: New test.
* tests/Makefile.am: Add new test.
* tests/testsuite.at: Likewise.
Diffstat (limited to 'doc/cflow.texi')
-rw-r--r-- | doc/cflow.texi | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/cflow.texi b/doc/cflow.texi index f4a71f4..1b164f4 100644 --- a/doc/cflow.texi +++ b/doc/cflow.texi @@ -235,10 +235,16 @@ Many programs (such as libraries or interpreters) define functions that are not directly reachable from the main function. To produce flow graph for all functions in the program, use the @option{--all} (@option{-A}) option. The output will then include separate flow -graphs for each global function defined in the program. These graphs +graphs for each top-level function defined in the program. These graphs will be placed after the graph for @code{main} (if it exists), and will be ordered lexicographically by the function name. +When @option{--all} is used twice, graphs for all global functions +(whether top-level or not) will be displayed. + +To disable special handling of the @code{main} function, use the +@option{--no-main} option. + @node Direct and Reverse @chapter Two Types of Flow Graphs. @cindex @option{--reverse} |