diff options
| author | xqyjlj <[email protected]> | 2023-12-22 11:15:18 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-12-22 11:15:18 +0800 |
| commit | e31fa93423fa5de892bdfc82e4309ebfbf1f15dc (patch) | |
| tree | 533bf7d3788b9b315e6246cb3b01a75de7a0aec4 /tools/ci/cpp_check.py | |
| parent | a01b66d57bbc5465854e81a9b6696f067847460b (diff) | |
✨ feat: spinlock should lock sched (#8360)
Diffstat (limited to 'tools/ci/cpp_check.py')
| -rw-r--r-- | tools/ci/cpp_check.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/ci/cpp_check.py b/tools/ci/cpp_check.py index 10906a3b7f..911111f16b 100644 --- a/tools/ci/cpp_check.py +++ b/tools/ci/cpp_check.py @@ -17,13 +17,13 @@ import format_ignore class CPPCheck: def __init__(self, file_list): self.file_list = file_list - + def check(self): file_list_filtered = [file for file in self.file_list if file.endswith(('.c', '.cpp', '.cc', '.cxx'))] logging.info("Start to static code analysis.") check_result = True for file in file_list_filtered: - result = subprocess.run(['cppcheck', '--enable=warning', 'performance', 'portability', '--inline-suppr', '--error-exitcode=1', '--force', file], stdout = subprocess.PIPE, stderr = subprocess.PIPE) + result = subprocess.run(['cppcheck', '-DRTM_EXPORT', '--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: |
