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

Upgrade format checker CI to clang-format-18 #294

Merged
merged 1 commit into from
Dec 9, 2023
Merged

Conversation

abhaybd
Copy link
Member

@abhaybd abhaybd commented Dec 9, 2023

We were previously using 11, which has a bug that was messing with our enums. Upgrading to 18 should fix this.

- name: Check Formatting
run: |
cd ${{ github.workspace }}
git reset --soft $(git merge-base HEAD origin/master)
diff=$(git clang-format-11 --diff)
diff=$(git clang-format-18 --style=file --diff)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you were right about --style=file, it should be the default, so I think no need for it here unless you want to be really clear that we're formatting from a file

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I figured we might as well be explicit about it. Saves us the trouble of going and finding the docs next time we forget if that's the default or not

Copy link
Contributor

Choose a reason for hiding this comment

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

Cool, looks good then!

@abhaybd abhaybd merged commit b45f4b5 into master Dec 9, 2023
3 checks passed
@abhaybd abhaybd deleted the upgrade-format-ci branch December 9, 2023 23:30
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.

2 participants