Fix English typos in comments of check_names and list-identifiers

Signed-off-by: Yuto Takano <yuto.takano@arm.com>
This commit is contained in:
Yuto Takano 2021-08-16 10:37:24 +01:00
parent fb86ac70f5
commit 8246eb8fb6
2 changed files with 8 additions and 7 deletions

View File

@ -39,7 +39,7 @@ NameChecker performs the following checks:
- Typo checking: All words that begin with MBED exist as macros or constants. - Typo checking: All words that begin with MBED exist as macros or constants.
The script returns 0 on success, 1 on test failure, and 2 if there is a script The script returns 0 on success, 1 on test failure, and 2 if there is a script
error error. Must be run from Mbed TLS root. error. It must be run from Mbed TLS root.
""" """
import argparse import argparse
@ -429,8 +429,9 @@ class CodeParser():
def parse_identifiers(self, include, exclude=None): def parse_identifiers(self, include, exclude=None):
""" """
Parse all lines of a header where a function identifier is declared, Parse all lines of a header where a function/enum/struct/union/typedef
based on some huersitics. Highly dependent on formatting style. identifier is declared, based on some heuristics. Highly dependent on
formatting style.
Note: .match() checks at the beginning of the string (implicit ^), while Note: .match() checks at the beginning of the string (implicit ^), while
.search() checks throughout. .search() checks throughout.
@ -509,7 +510,7 @@ class CodeParser():
line = previous_line.strip() + " " + line.strip() line = previous_line.strip() + " " + line.strip()
previous_line = "" previous_line = ""
# Skip parsing if line has a space in front = hueristic to # Skip parsing if line has a space in front = heuristic to
# skip function argument lines (highly subject to formatting # skip function argument lines (highly subject to formatting
# changes) # changes)
if line[0] == " ": if line[0] == " ":

View File

@ -56,9 +56,9 @@ else
cat <<EOF cat <<EOF
Sorry, this script has to be called with --internal. Sorry, this script has to be called with --internal.
This script exists solely for backwards compatibility for the previous ieration This script exists solely for backwards compatibility with the previous
of list-identifiers.sh, of which only the --internal option remains in use. It iteration of list-identifiers.sh, of which only the --internal option remains in
is a thin wrapper around list_internal_identifiers.py. use. It is a thin wrapper around list_internal_identifiers.py.
check-names.sh, which used to depend on this script, has been replaced with check-names.sh, which used to depend on this script, has been replaced with
check_names.py and is now self-complete. check_names.py and is now self-complete.