diff options
| author | Shell <[email protected]> | 2024-03-28 23:42:56 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2024-04-19 15:09:47 +0800 |
| commit | 17d22ad408c5c5bbabd9e895500f7a5835f1a44b (patch) | |
| tree | 147740020bd1c8ab3188a84773a314b6ccd325d6 /tools/ci/cpp_check.py | |
| parent | da37ea86c8337e9099d61abf0c4bf87e3b192b1b (diff) | |
sync smart & dfs (#8672)
Signed-off-by: xqyjlj <[email protected]>
Signed-off-by: Shell <[email protected]>
Co-authored-by: xqyjlj <[email protected]>
Diffstat (limited to 'tools/ci/cpp_check.py')
| -rw-r--r-- | tools/ci/cpp_check.py | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/tools/ci/cpp_check.py b/tools/ci/cpp_check.py index 018f86fda4..dc9f6610b9 100644 --- a/tools/ci/cpp_check.py +++ b/tools/ci/cpp_check.py @@ -23,7 +23,23 @@ class CPPCheck: logging.info("Start to static code analysis.") check_result = True for file in file_list_filtered: - result = subprocess.run(['cppcheck', '-DRTM_EXPORT', '-DMSH_CMD_EXPORT(a,b)=', '--enable=warning', 'performance', 'portability', '--inline-suppr', '--error-exitcode=1', '--force', file], stdout = subprocess.PIPE, stderr = subprocess.PIPE) + result = subprocess.run( + [ + 'cppcheck', + '-DRT_ASSERT(x)=', + '-Drt_list_for_each_entry(a,b,c)=a=(void*)b', + '-I include', + '-I thread/components/finsh', + '--suppress=syntaxError', + '--enable=warning', + 'performance', + 'portability', + '--inline-suppr', + '--error-exitcode=1', + '--force', + file + ], + stdout = subprocess.PIPE, stderr = subprocess.PIPE) logging.info(result.stdout.decode()) logging.info(result.stderr.decode()) if result.stderr: |
