Skip to content

Conversation

@mchoo7
Copy link
Contributor

@mchoo7 mchoo7 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.

@mchoo7 mchoo7 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