We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4343d32 commit 4e37047Copy full SHA for 4e37047
tools/ci/cpp_check.py
@@ -52,6 +52,10 @@ def check(self):
52
logging.info("Start to static code analysis.")
53
check_result = True
54
for file in file_list_filtered:
55
+ macros = []
56
+ if os.path.basename(file) == 'lwp.c':
57
+ macros.append('-DRT_USING_DFS')
58
+
59
result = subprocess.run(
60
[
61
'cppcheck',
@@ -70,7 +74,7 @@ def check(self):
70
74
'--error-exitcode=1',
71
75
'--force',
72
76
file
73
- ],
77
+ ] + macros,
78
stdout = subprocess.PIPE, stderr = subprocess.PIPE)
79
logging.info(result.stdout.decode())
80
logging.info(result.stderr.decode())
0 commit comments