-
Notifications
You must be signed in to change notification settings - Fork 9
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
1699: Update .clang-format
syntax
#1700
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1700 +/- ##
========================================
Coverage 83.71% 83.72%
========================================
Files 772 772
Lines 26797 26797
========================================
+ Hits 22433 22435 +2
+ Misses 4364 4362 -2
|
98d61c7
to
dfa0f02
Compare
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.
👍🏻 Checked with my clang-format 12.
As for the script, some folks might find it handy, thanks.
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.
I had to also change the following values:
AlignConsecutiveAssignments: None
AlignConsecutiveDeclarations: None
AlignConsecutiveMacros: None
SortIncludes: Never
I will update those and check with Clang 13 👍 edit: I have Clang 10 at hand as well, this should be reasonable threshold for backwards compatibility. |
dfa0f02
to
c09d229
Compare
c09d229
to
db0ce96
Compare
@nmm0 Updated the remaining values. Works fine for me, but older version (clang-format-10) didn't like it. If anyone with an older setup complains we can discuss the solution. For now, I think targeting newer version is the right choice. |
My clang-format (12.0.0) doesn't really like |
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.
Does this post-commit hook run automatically or how does it work?
You need to copy it to |
d344f35
to
5903f33
Compare
Update .clang-format to match Clang 13 syntax.
5903f33
to
83f4435
Compare
git clang-format
pluginfixes #1699