Improve comments in parse_mbed_words()
Signed-off-by: Yuto Takano <yuto.takano@arm.com>
This commit is contained in:
parent
12a7ecda5a
commit
b47b504418
1 changed files with 3 additions and 2 deletions
|
@ -287,14 +287,15 @@ class NameCheck():
|
||||||
|
|
||||||
def parse_mbed_words(self, files):
|
def parse_mbed_words(self, files):
|
||||||
"""
|
"""
|
||||||
Parse all words in the file that begin with MBED. Includes macros.
|
Parse all words in the file that begin with MBED, in and out of macros,
|
||||||
There have been typos of TLS, hence the broader check than MBEDTLS.
|
comments, anything.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
* files: a List of filepaths to look through.
|
* files: a List of filepaths to look through.
|
||||||
|
|
||||||
Returns a List of Match objects for words beginning with MBED.
|
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_]*")
|
mbed_regex = re.compile(r"\bMBED.+?_[A-Z0-9_]*")
|
||||||
exclusions = re.compile(r"// *no-check-names|#error")
|
exclusions = re.compile(r"// *no-check-names|#error")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue