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

Adopt style(9) with clang-format #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fel1x-developer
Copy link
Contributor

@fel1x-developer fel1x-developer commented Jan 23, 2024

I find lutok's coding style doesn't follow some conventions, such as having space in <> or putting pointer * or reference symbol & with variable types, not variable names.

FreeBSD's coding style style(9) can be applied here. One main exception in style(9) opposed to the "convention" is that style(9) use 8-space indentation while most projects use 4-space indentation. (2-space indentation is predominant in web dev). We can discuss whether or not to use 8-space indentation if needed.

I added .clang-format and then ran clang-format-all.

@fel1x-developer fel1x-developer force-pushed the clang-format branch 2 times, most recently from 79c67e6 to c02975f Compare March 10, 2024 22:15
This commit adopts FreeBSD's style(9). This file is retrieved from
https://github.com/freebsd/freebsd-src/blob/main/.clang-format.
Contributers can apply this style on modified files in future changes.

Signed-off-by: Minsoo Choo <[email protected]>
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.

1 participant