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 16 #110

Merged
merged 1 commit into from
Jan 10, 2024
Merged

Conversation

EZ64cool
Copy link
Contributor

Description

Upgrade clang-format used in actions to 16

Motivation and Context

With changes introduced in #82 clang-format 16 is now required. Using the current version of 13 will result in a .clang-format:115:3: error: unknown enumerated scalar error

How Has This Been Tested?

I have made small edits to code files which should trigger the github action which I will then revert.
I have also implemented this change into my own plugin after merging latest. https://github.com/EZ64cool/obs-hadowplay/actions/workflows/pr-pull.yaml?query=branch%3Amerging_template

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code has been run through clang-format.
  • I have read the contributing document.
  • My code is not on the master branch.
  • The code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

Copy link
Member

@RytoEX RytoEX left a comment

Choose a reason for hiding this comment

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

Looks fine at a glance. @PatTheMav ?

@PatTheMav
Copy link
Member

Commits need to be squashed and the experimental change reverted before that.

@RytoEX
Copy link
Member

RytoEX commented Jan 10, 2024

Commits need to be squashed and the experimental change reverted before that.

Ah, I didn't see the commits. Yes, this feedback needs to be addressed.

Copy link
Member

@RytoEX RytoEX left a comment

Choose a reason for hiding this comment

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

Per @PatTheMav :

Commits need to be squashed and the experimental change reverted before that.

@EZ64cool EZ64cool force-pushed the clang-format-16 branch 2 times, most recently from 5982252 to e604d1f Compare January 10, 2024 09:33
@EZ64cool
Copy link
Contributor Author

Thanks, first time contributing so sorry for the mess. I'll make a seperate FQ for running clang-format on other relevant files to keep this neat.

@EZ64cool EZ64cool requested a review from RytoEX January 10, 2024 09:35
With a recent commit to .clang-format the minimum required version has
now increased to 16. Without this clang-format will throw an error of
".clang-format:115:3: error: unknown enumerated scalar"
@RytoEX RytoEX merged commit 23facd5 into obsproject:master Jan 10, 2024
6 checks passed
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.

3 participants