Separate code parsing and name checking in two classes

Signed-off-by: Yuto Takano <yuto.takano@arm.com>
This commit is contained in:
Yuto Takano 2021-08-09 15:35:19 +01:00
parent 50953433a4
commit 55c6c87d95
2 changed files with 99 additions and 97 deletions

View file

@ -29,9 +29,10 @@ Must be run from Mbed TLS root.
"""
import argparse
import logging
import traceback
import sys
from check_names import NameCheck
from check_names import CodeParser
def main():
parser = argparse.ArgumentParser(
@ -44,7 +45,7 @@ def main():
parser.parse_args()
try:
name_check = NameCheck()
name_check = CodeParser(logging.getLogger())
result = name_check.parse_identifiers([
"include/mbedtls/*_internal.h",
"library/*.h"