Skip to content
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

Add support for static analysis #2597

Merged
merged 2 commits into from
Oct 20, 2023

Conversation

pjonsson
Copy link
Contributor

@pjonsson pjonsson commented Aug 13, 2023

GCC can perform static analysis on code.
Add support to the build system for
using that.

Run with:

make ANALYZE=1

@arurke
Copy link
Member

arurke commented Aug 22, 2023

Is the commit adding ASSUME intentional?

@pjonsson
Copy link
Contributor Author

Is the commit adding ASSUME intentional?

Yes, I don't think there's much other use for it besides guiding static analysis tools, #2594 that fixes an fanalyzer warning needs it.

os/sys/cc.h Outdated Show resolved Hide resolved
This is useful for guiding gcc -fanalyzer about
invariants of the code that are too complicated
to be inferred.
GCC can perform static analysis on code.
Add support to the build system for
using that.

Run with:

make ANALYZE=1
@joakimeriksson joakimeriksson merged commit bbf05fd into contiki-ng:develop Oct 20, 2023
25 checks passed
@pjonsson pjonsson deleted the add-analyzer branch October 20, 2023 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants