Skip to content

Commit a8ee46e

Browse files
haytham918heinezen
authored andcommitted
Add comments in clang-tidy.py
1 parent 401abc2 commit a8ee46e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

buildsystem/codecompliance/clangtidy.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ def find_issues(check_files, dirnames):
1515
Yields issues found by clang-tidy in real-time.
1616
"""
1717
# Specify the checks to include
18+
# 4 checks we focus on
1819
checks_to_include = [
1920
'clang-analyzer-*',
2021
'bugprone-*',
@@ -27,6 +28,7 @@ def find_issues(check_files, dirnames):
2728
# Invocation command
2829
invocation = ['clang-tidy', f'-checks=-*,{checks}']
2930

31+
# Use utility functions from util.py and cppstyle.py
3032
if check_files is not None:
3133
filenames = list(filter_file_list(check_files, dirnames))
3234
else:
@@ -58,6 +60,7 @@ def find_issues(check_files, dirnames):
5860
for error_line in process.stderr:
5961
yield ("clang-tidy error", error_line.strip(), None)
6062

63+
# Handle exception
6164
except subprocess.SubprocessError as exc:
6265
yield (
6366
"clang-tidy error",

0 commit comments

Comments
 (0)