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

Minor fixes and alias example without ptr arithmetic #3

Open
eddyp opened this issue Jun 20, 2019 · 1 comment
Open

Minor fixes and alias example without ptr arithmetic #3

eddyp opened this issue Jun 20, 2019 · 1 comment

Comments

@eddyp
Copy link

eddyp commented Jun 20, 2019

Hello,

I have evaluated the C examples on bare-metal code on a proprietary compiler and a proprietary static analysis tool, but I am not sure I can publish the results.

What I can tell you now:

  • It would have been better if the exact MISRA standard version was specified, I understood from @shnewto it was MISRA 2012
  • can't test the thread example since I tried on bare metal (no OS)
  • found an issue with the const const in constat.c example code, compiler complained immediately and I think GCC would complain, too
  • examples using pointer arithmetic always are rejected by the compiler due to MISRA 2012 Rule 18.4, so I think examples without ptr arithmetic should be added
    • I added an alias clone without ptr arithmetic

Changes are here, but for some reason I can't seem to create a PR (I get error 500):
https://github.com/c-rustacean/static-analysis-argumentation/compare/minor-fixes-and-alias-example-no-ptr-arithmetic?expand=1

@eddyp
Copy link
Author

eddyp commented Jun 21, 2019

Managed to create the PR:
#4

It seems the errors were some transitory issues on github's side.

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

No branches or pull requests

1 participant