mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-08 17:42:09 +03:00
Re-add empty lines that were accidentally omitted in the previous commit.
Signed-off-by: Aditya Deshpande <aditya.deshpande@arm.com>
This commit is contained in:
@@ -323,9 +323,11 @@ class CodeParser():
|
|||||||
While the check_names script is designed only for use on UNIX/macOS
|
While the check_names script is designed only for use on UNIX/macOS
|
||||||
(due to nm), this function alone will work fine on Windows even with
|
(due to nm), this function alone will work fine on Windows even with
|
||||||
forward slashes in the wildcard.
|
forward slashes in the wildcard.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
* include_wildcards: a List of shell-style wildcards to match filepaths.
|
* include_wildcards: a List of shell-style wildcards to match filepaths.
|
||||||
* exclude_wildcards: a List of shell-style wildcards to exclude.
|
* exclude_wildcards: a List of shell-style wildcards to exclude.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
* inc_files: A List of relative filepaths for included files.
|
* inc_files: A List of relative filepaths for included files.
|
||||||
* exc_files: A List of relative filepaths for excluded files.
|
* exc_files: A List of relative filepaths for excluded files.
|
||||||
@@ -350,9 +352,11 @@ class CodeParser():
|
|||||||
While the check_names script is designed only for use on UNIX/macOS
|
While the check_names script is designed only for use on UNIX/macOS
|
||||||
(due to nm), this function alone will work fine on Windows even with
|
(due to nm), this function alone will work fine on Windows even with
|
||||||
forward slashes in the wildcard.
|
forward slashes in the wildcard.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
* include_wildcards: a List of shell-style wildcards to match filepaths.
|
* include_wildcards: a List of shell-style wildcards to match filepaths.
|
||||||
* exclude_wildcards: a List of shell-style wildcards to exclude.
|
* exclude_wildcards: a List of shell-style wildcards to exclude.
|
||||||
|
|
||||||
Returns a List of relative filepaths.
|
Returns a List of relative filepaths.
|
||||||
"""
|
"""
|
||||||
accumulator = set()
|
accumulator = set()
|
||||||
@@ -363,7 +367,6 @@ class CodeParser():
|
|||||||
return list(path for path in accumulator
|
return list(path for path in accumulator
|
||||||
if not self.is_file_excluded(path, exclude_wildcards))
|
if not self.is_file_excluded(path, exclude_wildcards))
|
||||||
|
|
||||||
|
|
||||||
def parse_macros(self, include, exclude=None):
|
def parse_macros(self, include, exclude=None):
|
||||||
"""
|
"""
|
||||||
Parse all macros defined by #define preprocessor directives.
|
Parse all macros defined by #define preprocessor directives.
|
||||||
@@ -632,9 +635,11 @@ class CodeParser():
|
|||||||
identifier is declared, based on some regex and heuristics. Highly
|
identifier is declared, based on some regex and heuristics. Highly
|
||||||
dependent on formatting style. Identifiers in excluded files are still
|
dependent on formatting style. Identifiers in excluded files are still
|
||||||
parsed
|
parsed
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
* include: A List of glob expressions to look for files through.
|
* include: A List of glob expressions to look for files through.
|
||||||
* exclude: A List of glob expressions for excluding files.
|
* exclude: A List of glob expressions for excluding files.
|
||||||
|
|
||||||
Returns: a Tuple of two Lists of Match objects with identifiers.
|
Returns: a Tuple of two Lists of Match objects with identifiers.
|
||||||
* included_identifiers: A List of Match objects with identifiers from
|
* included_identifiers: A List of Match objects with identifiers from
|
||||||
included files.
|
included files.
|
||||||
@@ -812,6 +817,7 @@ class NameChecker():
|
|||||||
Perform a check that all detected symbols in the library object files
|
Perform a check that all detected symbols in the library object files
|
||||||
are properly declared in headers.
|
are properly declared in headers.
|
||||||
Assumes parse_names_in_source() was called before this.
|
Assumes parse_names_in_source() was called before this.
|
||||||
|
|
||||||
Returns the number of problems that need fixing.
|
Returns the number of problems that need fixing.
|
||||||
"""
|
"""
|
||||||
problems = []
|
problems = []
|
||||||
|
Reference in New Issue
Block a user