summaryrefslogtreecommitdiff
path: root/specview.py
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-11-13 22:12:33 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-11-17 09:05:48 +0100
commita07f53a5490bfe18ba3a83fc6f695a2f25798a0b (patch)
tree7059a7d697d79b0d688ce0cac1e110b5e5b29877 /specview.py
parentdc014e16b5bb011b8985880eec866f63b605b130 (diff)
spec: Add constant not pre-qualified constraint
Diffstat (limited to 'specview.py')
-rwxr-xr-xspecview.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/specview.py b/specview.py
index 215f703b..0e5d0f84 100755
--- a/specview.py
+++ b/specview.py
@@ -179,6 +179,7 @@ _VALIDATION_LEAF = [
_NOT_PRE_QUALIFIED = set([
"/acfg/constraint/option-not-pre-qualified",
+ "/constraint/constant-not-pre-qualified",
"/constraint/directive-not-pre-qualified",
])
@@ -189,7 +190,8 @@ def _is_pre_qualified(item: Item) -> bool:
_NOT_PRE_QUALIFIED))
-def _no_validation(item: Item, path: List[str], enabled: List[str]) -> List[str]:
+def _no_validation(item: Item, path: List[str],
+ enabled: List[str]) -> List[str]:
path_2 = path + [item.uid]
if not item.is_enabled(enabled):
return path_2[:-1]