Skip to content

Commit

Permalink
Restyle
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Apr 21, 2022
1 parent 9d8ef17 commit e03073d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/run-clang-tidy-on-compile-commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def Check(self):
#
# 59 warnings generated.
# Suppressed 59 warnings (59 in non-user code).
# Use -header-filter=.* to display errors from all non-system headers.
# Use -header-filter=.* to display errors from all non-system headers.
# Use -system-headers to display errors from system headers as well.
#
# We ignore output from that file
Expand All @@ -146,19 +146,17 @@ def Check(self):
"Use -system-headers to display errors from system headers as well.",
]


for l in err.decode('utf-8').split('\n'):
l = l.strip()

if any(map(lambda s: s in l, skip_strings)):
continue

if not l:
continue # no empty lines
continue # no empty lines

logging.warning('TIDY %s: %s', self.file, l)


if proc.returncode != 0:
if proc.returncode < 0:
logging.error(
Expand Down

0 comments on commit e03073d

Please sign in to comment.