summaryrefslogtreecommitdiffhomepage
path: root/registry/spec_tools
diff options
context:
space:
mode:
Diffstat (limited to 'registry/spec_tools')
-rw-r--r--registry/spec_tools/conventions.py9
-rw-r--r--registry/spec_tools/util.py1
2 files changed, 8 insertions, 2 deletions
diff --git a/registry/spec_tools/conventions.py b/registry/spec_tools/conventions.py
index 50ca75d..9c583f5 100644
--- a/registry/spec_tools/conventions.py
+++ b/registry/spec_tools/conventions.py
@@ -153,6 +153,11 @@ class ConventionsBase(abc.ABC):
return 'code:'
@property
+ def allows_x_number_suffix(self):
+ """Whether vendor tags can be suffixed with X and a number to mark experimental extensions."""
+ return False
+
+ @property
@abc.abstractmethod
def structtype_member_name(self):
"""Return name of the structure type member.
@@ -213,7 +218,7 @@ class ConventionsBase(abc.ABC):
Do not edit these defaults, override self.makeProseList().
"""
- assert(serial_comma) # did not implement what we did not need
+ assert serial_comma # did not implement what we did not need
if isinstance(fmt, str):
fmt = ProseListFormats.from_string(fmt)
@@ -366,7 +371,7 @@ class ConventionsBase(abc.ABC):
May override."""
return self.api_prefix + 'EXT_'
- def writeFeature(self, featureExtraProtect, filename):
+ def writeFeature(self, featureName, featureExtraProtect, filename):
"""Return True if OutputGenerator.endFeature should write this feature.
Defaults to always True.
diff --git a/registry/spec_tools/util.py b/registry/spec_tools/util.py
index e67038a..b1ac5d2 100644
--- a/registry/spec_tools/util.py
+++ b/registry/spec_tools/util.py
@@ -1,6 +1,7 @@
"""Utility functions not closely tied to other spec_tools types."""
# Copyright (c) 2018-2019 Collabora, Ltd.
# Copyright 2013-2024 The Khronos Group Inc.
+#
# SPDX-License-Identifier: Apache-2.0