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:
parent
dd8ac67792
commit
0584df4131
@ -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))
|
||||||
|
|
||||||
|
@ -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]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user