docs: add check for signals/bus

Signals/buses declared in the docs that does not exist in the
components.xml files will raise a warning.

Signed-off-by: Jorge Marques <jorge.marques@analog.com>
main
Jorge Marques 2023-09-25 17:53:42 -03:00 committed by Jorge Marques
parent 55d4215f45
commit 303b3a0eeb
1 changed files with 5 additions and 1 deletions

View File

@ -337,6 +337,10 @@ class directive_interfaces(directive_base):
subnode += section
for tag in description:
if tag not in bs and tag not in pr:
logger.warning(f"Signal {tag} defined in the directive does not exist in the source code!")
return subnode
def run(self):
@ -515,7 +519,7 @@ class directive_parameters(directive_base):
for tag in description:
if tag not in parameter:
logger.warning(f"{tag} does not exist in {file_2}!")
logger.warning(f"{tag} defined in the directive does not exist in the source code!")
return table