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

Apply Clang Format #943

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Apply Clang Format #943

wants to merge 4 commits into from

Conversation

olilarkin
Copy link
Member

This PR applies clang-format to the IPlug2 codebase

@AlexHarker
Copy link
Collaborator

Do we really want:

ConstructorInitializerIndentWidth: 2

rather than setting this to zero (which would match the previous style?). I can live with it, but it's not my preference

@AlexHarker
Copy link
Collaborator

Do we want to format 3rd party things like iPlug/Extras/HIIR/*?

IVStyle newStyle = *this;
newStyle.showLabel = show;
return newStyle;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is an issue, because it hasn't added a blank line when expanding these helper functions onto different lines

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 couldn't work out what rule would influence that. Fixed up manually

@AlexHarker
Copy link
Collaborator

AlexHarker commented Mar 26, 2023

If I run clang format locally I get different results in relation to trailing comments. what version of clang format are you on (and are we working towards)?

I believe that at least some of this is to do with AlignTrailingComments post clang format 16 (see docs). It is important to fix that as otherwise I can't easily test other changes. I am on version 16.

@olilarkin
Copy link
Member Author

Do we want to format 3rd party things like iPlug/Extras/HIIR/*?

I'll remove it. I want to update HIIR and move it to Dependencies

@olilarkin
Copy link
Member Author

If I run clang format locally I get different results in relation to trailing comments. what version of clang format are you on (and are we working towards)?

I believe that at least some of this is to do with AlignTrailingComments post clang format 16 (see docs). It is important to fix that as otherwise I can't easily test other changes. I am on version 16.

yep... i had an old clang format, going to push updates...

@olilarkin olilarkin force-pushed the clang-format branch 2 times, most recently from 3e6e052 to b454a34 Compare March 26, 2023 17:22
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.

None yet

2 participants