| www.delorie.com/gnu/docs/gcc/gnat_ug_159.html | search |
![]() Buy the book! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
gnatxref Switches
The command lines for gnatxref is:
$ gnatxref [switches] sourcefile1 [sourcefile2 ...] |
where
sourcefile1, sourcefile2
These file names are considered to be regular expressions, so for instance specifying 'source*.adb' is the same as giving every file in the current directory whose name starts with 'source' and whose extension is 'adb'.
The switches can be :
^-a^/ALL_FILES^
gnatfind and gnatxref will parse
the read-only files found in the library search path. Otherwise, these files
will be ignored. This option can be used to protect Gnat sources or your own
libraries from being parsed, thus making gnatfind and gnatxref
much faster, and their output much smaller.
-aIDIR
-aODIR
-nostdinc
-nostdlib
--RTS=rts-path
gnatmake flag (see 6.2 Switches for gnatmake).
-d
gnatxref will output the parent type
reference for each matching derived types.
^-f^/FULL_PATHNAME^
^-g^/IGNORE_LOCALS^
gnatfind and gnatxref.
-IDIR
-pFILE
gnatxref and gnatfind will try to locate a
project file in the current directory.
If a project file is either specified or found by the tools, then the content of the source directory and object directory lines are added as if they had been specified respectively by `^-aI^/SOURCE_SEARCH^' and `^-aO^OBJECT_SEARCH^'.
^-u^/UNUSED^
gnatxref will then
display every unused entity and 'with'ed package.
-v
gnatxref will generate a
`tags' file that can be used by vi. For examples how to use this
feature, see See section 12.5 Examples of gnatxref Usage. The tags file is output
to the standard output, thus you will have to redirect it to a file.
All these switches may be in any order on the command line, and may even appear after the file names. They need not be separated by spaces, thus you can say `gnatxref ^-ag^/ALL_FILES/IGNORE_LOCALS^' instead of `gnatxref ^-a -g^/ALL_FILES /IGNORE_LOCALS^'.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |