1
0
mirror of https://github.com/ARMmbed/mbedtls.git synced 2025-05-10 08:59:05 +08:00

Minor changes to account for CodeParser.parse_identifiers being used in list_internal_identifiers.py

Signed-off-by: Aditya Deshpande <aditya.deshpande@arm.com>
This commit is contained in:
Aditya Deshpande 2023-01-16 16:36:31 +00:00
parent dd8ac67792
commit 0584df4131
2 changed files with 2 additions and 2 deletions

View File

@ -342,7 +342,7 @@ class CodeParser():
* exc_files: A List of relative filepaths for excluded files. * exc_files: A List of relative filepaths for excluded files.
""" """
accumulator = set() accumulator = set()
all_wildcards = include_wildcards + exclude_wildcards all_wildcards = include_wildcards + (exclude_wildcards or [])
for wildcard in all_wildcards: for wildcard in all_wildcards:
accumulator = accumulator.union(glob.iglob(wildcard)) accumulator = accumulator.union(glob.iglob(wildcard))

View File

@ -46,7 +46,7 @@ def main():
result = name_check.parse_identifiers([ result = name_check.parse_identifiers([
"include/mbedtls/*_internal.h", "include/mbedtls/*_internal.h",
"library/*.h" "library/*.h"
]) ])[0]
result.sort(key=lambda x: x.name) result.sort(key=lambda x: x.name)
identifiers = ["{}\n".format(match.name) for match in result] identifiers = ["{}\n".format(match.name) for match in result]