From a596b89343c5c8896a245bd69655a7c1721b2bdc Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 8 May 2023 12:37:13 +0200 Subject: spec: Add unspecified header file item type --- rtemsspec/interface.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'rtemsspec/interface.py') diff --git a/rtemsspec/interface.py b/rtemsspec/interface.py index d31bcb0e..c1655c4c 100644 --- a/rtemsspec/interface.py +++ b/rtemsspec/interface.py @@ -740,7 +740,10 @@ class _HeaderFile: def add_includes(self, item: Item) -> None: """ Adds the includes of the item to the header file includes. """ for parent in item.parents("interface-placement"): - if parent.type == "interface/header-file": + if parent.type in [ + "interface/header-file", + "interface/unspecified-header-file" + ]: self._includes.append(parent) def _add_child(self, item: Item) -> None: -- cgit v1.2.3