frr/python
David Lamparter 89cb86aeb0 build, vtysh: extract vtysh commands from .xref
Rather than running selected source files through the preprocessor and a
bunch of perl regex'ing to get the list of all DEFUNs, use the data
collected in frr.xref.

This not only eliminates issues we've been having with preprocessor
failures due to nonexistent header files, but is also much faster.
Where extract.pl would take 5s, this now finishes in 0.2s.  And since
this is a non-parallelizable build step towards the end of the build
(dependent on a lot of other things being done already), the speedup is
actually noticeable.

Also files containing CLI no longer need to be listed in `vtysh_scan`
since the .xref data covers everything.  `#ifndef VTYSH_EXTRACT_PL`
checks are equally obsolete.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-10-26 17:12:34 +01:00
..
clippy lib: add CMD_ATTR_NOSH 2022-10-06 15:34:32 +02:00
callgraph-dot.py *: reformat python files 2020-10-07 17:22:26 -04:00
clidef.py python: improve clippy/clidef macro processing 2022-02-28 13:28:43 +01:00
firstheader.py *: make sure config.h or zebra.h is first 2021-04-23 12:06:35 +02:00
makefile.py build: don't include vtysh.xref in frr.xref 2022-10-06 15:40:06 +02:00
makevars.py *: reformat python files 2020-10-07 17:22:26 -04:00
runtests.py python/xrelfo: the ELF xref extractor 2021-02-23 16:56:58 +01:00
test_xrelfo.py python/xrelfo: the ELF xref extractor 2021-02-23 16:56:58 +01:00
tiabwarfo.py python: Remove redundant import of subprocess 2022-06-16 16:31:35 -04:00
xref2vtysh.py build, vtysh: extract vtysh commands from .xref 2022-10-26 17:12:34 +01:00
xrefstructs.json python/xrelfo: cross-platform xrefstructs.json 2021-02-23 16:56:58 +01:00
xrelfo.py build, vtysh: extract vtysh commands from .xref 2022-10-26 17:12:34 +01:00