-
Notifications
You must be signed in to change notification settings - Fork 5
Code format uncrustify #70
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
base: master
Are you sure you want to change the base?
Conversation
0f0a71d
to
5c20213
Compare
5c20213
to
d0cbdcc
Compare
bf436ac
to
7e9728e
Compare
760988f
to
9d5ac5a
Compare
4b1be2c
to
dd551fd
Compare
uncrustify was updated so I updated everything |
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.
A few minor thinks, but looks good to me so far
c9d134f
to
8af9a06
Compare
2127cac
to
c1590ac
Compare
c1590ac
to
012c81f
Compare
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.
lgtm so far, except for the commented types of indentions
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.
Only one nitpick left from my side. Do we need to address this, or do you think it's OK to leave it that way?
@@ -28,7 +28,7 @@ | |||
* Get offset of a member | |||
*/ | |||
#ifndef offsetof | |||
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) | |||
# define offsetof(TYPE, MEMBER) ((size_t)&((TYPE*)0)->MEMBER) |
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.
While it should work it does not look right to me
Related Issues & PRs
Description
uncrustify
to format codecheck-uncrustify
to see if code format is needed.uncrustify.cfg
configContext
uncrustify
may be better suited thanclang-format
for our use-casesimply run
make check-uncrustify
to see what would change on formatTesting
make format
make check-format
Documentation