-
Notifications
You must be signed in to change notification settings - Fork 761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable unusedFunction checks #1970
base: master
Are you sure you want to change the base?
Conversation
31ff4a0
to
b9e64f8
Compare
|
ee1eeb3
to
f8d5b49
Compare
@adeebshihadeh is SPI ever used for Panda F4 besides the CI test? I can:
|
Let's add it to the tests. We don't use it yet, but might want to in the future. |
df66b33
to
60c3a42
Compare
I noticed that cppcheck doesn't report system level misra violation when used with |
ebf561a
to
dac2b4d
Compare
- gnu.cfg replaces __typeof__ with typeof() and triggered some misra-c2012-10.4 - fixed by making both function args the same essential type
- combines panda build configurations Increase mutation test timeout
remove Panda specific functions
STMF4 doesn't use uart interrupt DAC and watchdog are not used
memset is needed by the linker
In the meantime, I figured out a way to check different macro configurations together using |
@@ -193,440 +193,7 @@ Yes CheckType::checkSignConversion | |||
Yes CheckType::checkTooBigBitwiseShift | |||
Yes CheckUninitVar::check | |||
Yes CheckUninitVar::valueFlowUninit | |||
No CheckUnusedFunctions::check require:unusedFunction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did all of this get removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The diff is a bit weird - the second variant used to start at line 440 and now is removed.
Basically now, instead of checking F4 and H7 separately, they are checked together using cppcheck configuration combination capability (which is enforced with... --force
argument ).
Converting to draft. We need to add Underlying issue is related to how |
Find
unusedFunctions
for Panda program. Allows to:Links: #1954 #1794 #1878