Skip to content

Commit

Permalink
Re-add empty lines that were accidentally omitted in the previous com…
Browse files Browse the repository at this point in the history
…mit.

Signed-off-by: Aditya Deshpande <aditya.deshpande@arm.com>
  • Loading branch information
aditya-deshpande-arm committed Jan 27, 2023
1 parent 94375c8 commit 7d20bb4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/scripts/check_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,11 @@ def get_all_files(self, include_wildcards, exclude_wildcards):
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
forward slashes in the wildcard.
Args:
* include_wildcards: a List of shell-style wildcards to match filepaths.
* exclude_wildcards: a List of shell-style wildcards to exclude.
Returns:
* inc_files: A List of relative filepaths for included files.
* exc_files: A List of relative filepaths for excluded files.
Expand All @@ -350,9 +352,11 @@ def get_included_files(self, include_wildcards, exclude_wildcards):
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
forward slashes in the wildcard.
Args:
* include_wildcards: a List of shell-style wildcards to match filepaths.
* exclude_wildcards: a List of shell-style wildcards to exclude.
Returns a List of relative filepaths.
"""
accumulator = set()
Expand All @@ -363,7 +367,6 @@ def get_included_files(self, include_wildcards, exclude_wildcards):
return list(path for path in accumulator
if not self.is_file_excluded(path, exclude_wildcards))


def parse_macros(self, include, exclude=None):
"""
Parse all macros defined by #define preprocessor directives.
Expand Down Expand Up @@ -632,9 +635,11 @@ def parse_identifiers(self, include, exclude=None):
identifier is declared, based on some regex and heuristics. Highly
dependent on formatting style. Identifiers in excluded files are still
parsed
Args:
* include: A List of glob expressions to look for files through.
* exclude: A List of glob expressions for excluding files.
Returns: a Tuple of two Lists of Match objects with identifiers.
* included_identifiers: A List of Match objects with identifiers from
included files.
Expand Down Expand Up @@ -812,6 +817,7 @@ def check_symbols_declared_in_header(self):
Perform a check that all detected symbols in the library object files
are properly declared in headers.
Assumes parse_names_in_source() was called before this.
Returns the number of problems that need fixing.
"""
problems = []
Expand Down

0 comments on commit 7d20bb4

Please sign in to comment.