From 2157e86389eca09308422e55009ae8a182dea5c5 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Thu, 20 May 2021 21:37:06 +0200 Subject: [PATCH] Document include_intermediate in PSAMacroEnumerator Signed-off-by: Gilles Peskine --- scripts/mbedtls_dev/macro_collector.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/mbedtls_dev/macro_collector.py b/scripts/mbedtls_dev/macro_collector.py index ec8e18435..0e76435f3 100644 --- a/scripts/mbedtls_dev/macro_collector.py +++ b/scripts/mbedtls_dev/macro_collector.py @@ -105,6 +105,10 @@ class PSAMacroEnumerator: 'tag_length': [], 'min_tag_length': [], } #type: Dict[str, List[str]] + # Whether to include intermediate macros in enumerations. Intermediate + # macros serve as category headers and are not valid values of their + # type. See `is_internal_name`. + # Always false in this class, may be set to true in derived classes. self.include_intermediate = False def is_internal_name(self, name: str) -> bool: