[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
cflow
Options. This chapter contains an alphabetical listing of all
cflow
command line options, with brief descriptions and cross
references to more in-depth explanations in the body of the
manual. Both short and long option forms are listed, so you can use
this table as a quick reference.
Most of the options have a negation counterpart, an option with a reverse meaning. The name of a negation option is formed by prefixing the corresponding long option name with a ‘no-’. This feature is provided to cancel default options specified in the configuration file.
In the table below, options with negation counterparts are marked with a bullet (•).
Produce graphs for all global functions in the program. Use this
option if your program contains functions, which are not directly
reachable from main
(see start symbol).
• Assume input to be written in ANSI C
. Currently
this means disabling code that parses K&R function
declarations. This might speed up the processing in some cases.
• Brief output. See --brief.
• Run the specified preprocessor command. See section Running Preprocessor.
Predefine name as a macro. Implies ‘--cpp’ (see section Running Preprocessor).
Set the depth at which the flow graph is cut off. For example, ‘--depth=5’ means the graph will contain function calls up to the 5th nesting level.
Set debugging level. The default number is 1. Use this option
if you are developing and/or debugging cflow
.
• Prepend the output with a line telling Emacs to use cflow
mode when visiting this file. Implies ‘--format=gnu’. See --emacs.
Use given output format name. Valid names are gnu
(see GNU Output Format), posix
(see POSIX Output Format), and dot
(see DOT output format).
Display usage summary with short explanation for each option.
Add the directory dir to the list of directories to be searched for header files. Implies ‘--cpp’ (see section Running Preprocessor).
Control the number of included symbols. Spec is a string consisting of characters, specifying what class of symbols to include in the output. Valid spec symbols are:
Exclude symbols denoted by the following letters.
Include symbols denoted by the following letters (default).
Symbols whose names begin with an underscore.
Static symbols.
Typedefs (for cross-references only, see section Cross-Reference Output.).
All data symbols, both external and static.
For more information, See section Controlling Symbol Types.
See --print-level.
Use string when indenting to each new level. See section Using ASCII Art to Produce Flow Graphs..
Assume main function to be called name. Multiple main function can be specified. See start symbol.
Assume there’s no main function in the program. This option has
the same effect as ‘--all’, except that, if the program defines
the main
function, it will be treated as any other functions.
• Print line numbers. See --number.
Set output file name. Default is ‘-’, meaning standard output.
• Do not print argument lists in function declarations. See omit signature parts.
• Do not print symbol names in declarations. See omit signature parts. This option is turned on in ‘posix’ output mode (see POSIX Output Format.
• Print reverse call graph. See section Two Types of Flow Graphs..
• Produce cross-reference listing only. See section Cross-Reference Output..
Set initial token stack size to number tokens. Default is 64. The token stack grows automatically when it needs to accommodate more tokens than its current size, so it is seldom necessary to use this option.
Run the specified preprocessor command. See --cpp.
In the first form, registers symbol sym in the syntactic class class. Valid class names are: ‘keyword’ (or ‘kw’), ‘modifier’, ‘qualifier’, ‘identifier’, ‘type’, ‘wrapper’. Any unambiguous abbreviation of the above is also accepted. See section Syntactic classes.
In the second form (with the ‘:=’ separator), defines newsym as an alias to oldsym. See section Symbol aliases.
See section GCC Initialization, for a practical example of using this option.
• Use source file indentation as a hint. Currently this means that
the closing curly brace (‘}’) in the column zero forces
cflow
to close current function definition. Use this option
sparingly, it may cause misinterpretation of some sources.
Cancel any previous definition of name. Implies ‘--cpp’ (see section Running Preprocessor).
• Print nesting level along with the call graph. The level is printed after output line number (if ‘--number’ or ‘--format=posix’ is used, enclosed in curly braces.
• Use ASCII art to print graph. See section Using ASCII Art to Produce Flow Graphs..
Show only graphs leading from start symbols to this function. Multiple options are allowed. See start symbol.
Give a short usage message.
• Verbosely list any errors encountered in the input files. The
cflow
notion of an error does not match that of C
compiler, so by default error messages are turned off. It is useful to
enable them if you suspect that cflow
misinterprets the
sources.
Print program version.
[ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on December 30, 2021 using texi2html 5.0.