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

Apply Clang Format #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

gfgit
Copy link
Contributor

@gfgit gfgit commented Aug 21, 2023

Based on #2 which should be applied first.
This PR makes code style more consistent and readable using the clang-format utility.
The style chosen in .clang-format file tries to mimic current style.

Important changes:

  • Curly braces always open after newline
  • Tabs are replaced by spaces so formatting stays the same regardless of what editor is used to view it
  • Indentation is set to 2 spaces

Let me know if you prefer a different style!

@gfgit gfgit mentioned this pull request Aug 21, 2023
gfgit added 3 commits August 22, 2023 12:22
This enforces consistent code style
Then run Clang Format 16 again
@gfgit gfgit force-pushed the work/clang_format branch from c195954 to 09b2045 Compare August 22, 2023 10:33
@gfgit
Copy link
Contributor Author

gfgit commented Aug 22, 2023

I've rebased on current master

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