-
Notifications
You must be signed in to change notification settings - Fork 478
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
Follow Linux kernel coding style #87
Comments
I found the clang-format file in Linux.
|
We can assume the version of |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We should follow Linux kernel coding style as possible. The major difference in LKMPG is to use 4 spaces for indention rather than tabs. This is because we would stick to compact layout for source listing. However, others rules should be enforced. e.g., CAPITALIZED macro names are appreciated but macros resembling functions may be named in lower case. There are some example files that violates the rule, such as
examples/chardev2.c
. We should replace the use of CamelCase with plain lowercase variables.The text was updated successfully, but these errors were encountered: