Vous n'avez pas spécifié la plate-forme, donc une solution possible est le programme 'ctags':
DESCRIPTION
The ctags utility shall be provided on systems that support the User Portability Utilities option, the Software Development Utilities option, and
either or both of the C-Language Development Utilities option and FORTRAN Development Utilities option. On other systems, it is optional.
The ctags utility shall write a tagsfile or an index of objects from C-language or FORTRAN source files specified by the pathname operands. The
tagsfile shall list the locators of language-specific objects within the source files. A locator consists of a name, pathname, and either a search
pattern or a line number that can be used in searching for the object definition. The objects that shall be recognized are specified in the
EXTENDED DESCRIPTION section.
OPTIONS
...
-x Produce a list of object names, the line number, and filename in which each is defined, as well as the text of that line, and write this to
the standard output. A tagsfile shall not be created when -x is specified.
Dans quel but? Voulez-vous de la documentation autogénérée? – thejh
Non, je travaille avec un outil d'analyse de chemin et je veux faire correspondre certaines de mes sorties. – user1928436
'grep' avec regex ira le travail .. –