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

Add missing single-line braces using clang-tidy #20

Merged
merged 2 commits into from
Jul 25, 2022

Conversation

oerdnj
Copy link
Contributor

@oerdnj oerdnj commented Jul 25, 2022

As the clang-format doesn't have (yet) the capability to add braces around single read statements, clang-tidy needs to be used for this.

@oerdnj oerdnj force-pushed the add-missing-braces branch 4 times, most recently from 31e2056 to 3db4468 Compare July 25, 2022 06:08
@simo5
Copy link
Member

simo5 commented Jul 25, 2022

Can we merge the github actions for style check and tidy into one?
Sounds like a bit of waste to split them on two separate runs.

@oerdnj
Copy link
Contributor Author

oerdnj commented Jul 25, 2022

Can we merge the github actions for style check and tidy into one?
Sounds like a bit of waste to split them on two separate runs.

I guess, let me check.

oerdnj added 2 commits July 25, 2022 10:40
Using the clang-tidy's readability-braces-around-statements check,
add missing braces around single-line statements.

Signed-off-by: Ondřej Surý <[email protected]>
Add a basic GitHub Action to run clang-tidy with (so-far) only the check
for the single-line braces enabled.  More checks can be enabled later.

Signed-off-by: Ondřej Surý <[email protected]>
@oerdnj oerdnj force-pushed the add-missing-braces branch from 3db4468 to 300ba81 Compare July 25, 2022 08:40
@oerdnj
Copy link
Contributor Author

oerdnj commented Jul 25, 2022

Can we merge the github actions for style check and tidy into one?
Sounds like a bit of waste to split them on two separate runs.

I guess, let me check.

Ok, should be done. I'll push one more time with code that's unformatted to check if it does what it should.

@simo5
Copy link
Member

simo5 commented Jul 25, 2022

Looks good

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