-
Notifications
You must be signed in to change notification settings - Fork 94
Switch to uncrustify #517
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
Switch to uncrustify #517
Conversation
|
@jcfr feel free to review |
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.
Thanks for working on this:
-
Considering cherry picking commit titled
chore: Remove obsolete runastyle scriptsfrom #516 -
Add a second commit
chore: Add settings corresponding to uncrustify 0.80.1 Introduce settings based of similar settings copied from danmar/cppcheck@b4f07cdbb. -
Add a third commit:
style: Consistent formatting of C++ sources using uncrustify This commit updates the sources file based on the settings introduced in previous commit. -
Either in the context of this pull request or in a follow-up one, add
.git-blame-ignore-revs1 -
Add
pre-commit.ymlworkflow with theuncrustifyhook enabled2.
Footnotes
4f106fe to
ecf23c1
Compare
ecf23c1 to
18cfb6a
Compare
|
@jcfr thanks for the reviews. there was some mess in my first commit to cleanup as you saw. but I hope it didn't add any extra changes now. |
| # - you can put uncrustify in your PATH | ||
| # - you can create an environment variable UNCRUSTIFY that has the full path of the binary | ||
|
|
||
| UNCRUSTIFY_VERSION="0.72.0" |
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.
This is likely incorrect and inconsistent, inspecting danmar/cppcheck@3726ace seems to indicate that the version should be 0.80.1
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 agree. I copied the file directly from cppcheck main though. :-( maybe we need to update the script both in cppcheck and simplecpp..
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.
maybe we need to update the script both in cppcheck and simplecpp..
would you have time to look at that maybe?
|
The commit should probably have been split as suggested in #517 (review). Indeed, referencing 18cfb6a in While this is not a critical in the current situation, in the future, I suggest to avoid mixing changes. |
No description provided.