-
Notifications
You must be signed in to change notification settings - Fork 11
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
Makefile: add clang-format #176
Conversation
I wonder if this this something that should be done in this project. C/Cpp files are only test-related, copied verbatim from original cpp-driver and modified a bit. Maybe it's of more value to reduce amount of modifications to them, so that it is easier to diff them eith their original versions? |
Another issue: biggest cause for automated code formatting is consistency of formatting. This PR uses default style of clang-format, without any config. This is consistent neither with scylla / seastar style, nor with original cpp-driver style. |
There is a clang-format config file in cpp-driver's repo: https://github.com/datastax/cpp-driver/blob/master/.clang-format. We should definitely use it, |
b2634ba
to
924e0e4
Compare
Thanks, I have copied it. |
How did you generate the last commit? It looks like it doesn't respect the config. Example: look at I checked out the PR, dropped the last commit and executed Another issue: I think that |
924e0e4
to
10d41fc
Compare
Thanks, both done, |
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.
Please squash first and second commits, otherwise LGTM
@Lorak-mmk , are you ok with it ? |
10d41fc
to
e8e0461
Compare
It adds
clang-format
to the list of linters for c/cpp code.Also it applies format changes suggested by
clang-format
Pre-review checklist
.github/workflows/build.yml
ingtest_filter
..github/workflows/cassandra.yml
ingtest_filter
.