Also check PSA: Python port of 2d9d6db60f
Signed-off-by: Yuto Takano <yuto.takano@arm.com>
This commit is contained in:
parent
3963967ebc
commit
c1838937f1
1 changed files with 4 additions and 3 deletions
|
@ -32,7 +32,7 @@ import logging
|
||||||
|
|
||||||
# Naming patterns to check against
|
# Naming patterns to check against
|
||||||
MACRO_PATTERN = r"^MBEDTLS_[0-9A-Z_]*[0-9A-Z]$|^YOTTA_[0-9A-Z_]*[0-9A-Z]$"
|
MACRO_PATTERN = r"^MBEDTLS_[0-9A-Z_]*[0-9A-Z]$|^YOTTA_[0-9A-Z_]*[0-9A-Z]$"
|
||||||
IDENTIFIER_PATTERN = r"^mbedtls_[0-9a-z_]*[0-9a-z]$"
|
IDENTIFIER_PATTERN = r"^(mbedtls|psa)_[0-9a-z_]*[0-9a-z]$"
|
||||||
|
|
||||||
class Match(object):
|
class Match(object):
|
||||||
def __init__(self, filename, line, pos, name):
|
def __init__(self, filename, line, pos, name):
|
||||||
|
@ -377,11 +377,12 @@ class NameCheck(object):
|
||||||
self.log.info("Parsing source code...")
|
self.log.info("Parsing source code...")
|
||||||
|
|
||||||
m_headers = self.get_files(os.path.join("include", "mbedtls"))
|
m_headers = self.get_files(os.path.join("include", "mbedtls"))
|
||||||
|
p_headers = self.get_files(os.path.join("include", "psa"))
|
||||||
libraries = self.get_files("library")
|
libraries = self.get_files("library")
|
||||||
|
|
||||||
all_macros = self.parse_macros(m_headers)
|
all_macros = self.parse_macros(m_headers + ["configs/config-default.h"])
|
||||||
enum_consts = self.parse_enum_consts(m_headers)
|
enum_consts = self.parse_enum_consts(m_headers)
|
||||||
identifiers = self.parse_identifiers(m_headers)
|
identifiers = self.parse_identifiers(m_headers + p_headers)
|
||||||
symbols = self.parse_symbols()
|
symbols = self.parse_symbols()
|
||||||
mbed_names = self.parse_MBED_names(m_headers, libraries)
|
mbed_names = self.parse_MBED_names(m_headers, libraries)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue