File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
buildsystem/codecompliance Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ def find_issues(check_files, dirnames):
15
15
Yields issues found by clang-tidy in real-time.
16
16
"""
17
17
# Specify the checks to include
18
+ # 4 checks we focus on
18
19
checks_to_include = [
19
20
'clang-analyzer-*' ,
20
21
'bugprone-*' ,
@@ -27,6 +28,7 @@ def find_issues(check_files, dirnames):
27
28
# Invocation command
28
29
invocation = ['clang-tidy' , f'-checks=-*,{ checks } ' ]
29
30
31
+ # Use utility functions from util.py and cppstyle.py
30
32
if check_files is not None :
31
33
filenames = list (filter_file_list (check_files , dirnames ))
32
34
else :
@@ -58,6 +60,7 @@ def find_issues(check_files, dirnames):
58
60
for error_line in process .stderr :
59
61
yield ("clang-tidy error" , error_line .strip (), None )
60
62
63
+ # Handle exception
61
64
except subprocess .SubprocessError as exc :
62
65
yield (
63
66
"clang-tidy error" ,
You can’t perform that action at this time.
0 commit comments