'--check-level=exhaustive' 这个选项可以更深入的在分支中检测,但是会耗时比较久一些。
@@ -33,6 +33,7 @@ class CPPCheck:
'-I thread/components/finsh',
# it's okay because CI will do the real compilation to check this
'--suppress=syntaxError',
+ '--check-level=exhaustive',
'--enable=warning',
'performance',
'portability',