From b47b504418e146dc0fae6be266bbdfd71a2d9827 Mon Sep 17 00:00:00 2001 From: Yuto Takano Date: Sat, 7 Aug 2021 00:42:54 +0100 Subject: [PATCH] Improve comments in parse_mbed_words() Signed-off-by: Yuto Takano --- tests/scripts/check-names.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/scripts/check-names.py b/tests/scripts/check-names.py index 81fd5ffb8..228ab4c64 100755 --- a/tests/scripts/check-names.py +++ b/tests/scripts/check-names.py @@ -287,14 +287,15 @@ class NameCheck(): def parse_mbed_words(self, files): """ - Parse all words in the file that begin with MBED. Includes macros. - There have been typos of TLS, hence the broader check than MBEDTLS. + Parse all words in the file that begin with MBED, in and out of macros, + comments, anything. Args: * files: a List of filepaths to look through. Returns a List of Match objects for words beginning with MBED. """ + # Typos of TLS are common, hence the broader check below than MBEDTLS. mbed_regex = re.compile(r"\bMBED.+?_[A-Z0-9_]*") exclusions = re.compile(r"// *no-check-names|#error")