From c7b9230c418662fb08d6b4557c9ba003dff50e08 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Wed, 18 Mar 2020 16:21:08 +0100 Subject: T2136: fail the build for interface definitions with valueless or multi flags set for non-leaf nodes. --- scripts/build-command-templates | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts') diff --git a/scripts/build-command-templates b/scripts/build-command-templates index dbf4ad9c5..c6534a6d8 100755 --- a/scripts/build-command-templates +++ b/scripts/build-command-templates @@ -264,6 +264,11 @@ def process_node(n, tmpl_dir): if node_type == "tagNode": props["tag"] = "True" + if node_type != "leafNode": + if "multi" in props: + raise ValueError(" tag is only allowed in ") + if "valueless" in props: + raise ValueError(" is only allowed in ") nodedef_path = os.path.join(make_path(my_tmpl_dir), "node.def") if not os.path.exists(nodedef_path): -- cgit v1.2.3