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

Update clang-format to 17 #4931

Merged
merged 3 commits into from
Oct 5, 2024
Merged

Conversation

derobins
Copy link
Member

@derobins derobins commented Oct 4, 2024

clang-format 13 is getting old. This updates the repository to 17.

Formatting changes are minimal. A few unnecessary clang-format off/on lines
were removed, but no new options have been added to .clang-format.

@derobins derobins added Merge - To 1.14 Priority - 2. Medium ⏹ It would be nice to have this in the next release Type - Improvement Improvements that don't add a new feature or functionality Component - Misc Anything else (CODEOWNERS, etc.) labels Oct 4, 2024
@derobins
Copy link
Member Author

derobins commented Oct 4, 2024

fwiw, I would probably not cherry pick this directly to 1.14 and 1.16. I would just update the GitHub actions to use v17 and then simply reformat the source and commit that.

@derobins
Copy link
Member Author

derobins commented Oct 4, 2024

I checked out all the options that were added in clang-format 14-17 and there wasn't anything I thought made a useful difference. I also tried pulling all the clang-format comments to see if we could ditch them. Only a few were unnecessary and they've been removed in this PR.

@derobins derobins added Type - Task Actions that don't fit into any other type category and removed Type - Improvement Improvements that don't add a new feature or functionality labels Oct 4, 2024
@derobins
Copy link
Member Author

derobins commented Oct 5, 2024

One thing I've noticed is that my Ubuntu 23.10 VM uses 17.0.2 while the action uses 17.0.4 and there are minor differences in the output. Not sure if anyone cares about that.

Copy link
Contributor

@qkoziol qkoziol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally a little better than previously 👍🏼

@derobins derobins merged commit 54f8f12 into HDFGroup:develop Oct 5, 2024
60 checks passed
lrknox pushed a commit to lrknox/hdf5 that referenced this pull request Oct 9, 2024
Also bump the clang-format GitHub actions to 17
lrknox pushed a commit that referenced this pull request Oct 10, 2024
Also bump the clang-format GitHub actions to 17
lrknox pushed a commit to lrknox/hdf5 that referenced this pull request Oct 10, 2024
Also bump the clang-format GitHub actions to 17
lrknox added a commit that referenced this pull request Oct 10, 2024
* Correct publish path

* Update clang-format to 17 (#4931)

Also bump the clang-format GitHub actions to 17

* Committing clang-format changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - Misc Anything else (CODEOWNERS, etc.) Priority - 2. Medium ⏹ It would be nice to have this in the next release Type - Task Actions that don't fit into any other type category
Projects
Status: Needs Merged
Development

Successfully merging this pull request may close these issues.

3 participants