Skip to content

Conversation

gg21-aping
Copy link
Contributor

Current .clang_format creates a space between a macro's name and the parenthesis, which does not follow the kernel coding style. The change is made so the unnecessary parenthesis will not be created.

Change-Id: I97bf12cd270c6aef03eca359e29636bb5fb3d616

@jserv
Copy link
Contributor

jserv commented Mar 6, 2025

Squash the comments and then force push.

Add a statement so that clang-format follows the linux kernel coding
style, preventing spaces between a macro's name and the parenthesis.

Change-Id: I97bf12cd270c6aef03eca359e29636bb5fb3d616
@jserv jserv merged commit a1db6c5 into sysprog21:master Mar 6, 2025
@jserv
Copy link
Contributor

jserv commented Mar 6, 2025

Thank @gg21-aping for contributing!

yy214123 added a commit to yy214123/lab0-c that referenced this pull request Mar 6, 2025
Re-run clang-format to apply the changes.
yy214123 added a commit to yy214123/lab0-c that referenced this pull request Mar 7, 2025
Applied clang-format fixes from PR sysprog21#232.

Change-Id: I2f8d1a5a6f0a8242e47a98d27c87550356de0259
@Urbaner3
Copy link

[!] queue.c does not follow the consistent coding style.

Make sure you indent as the following:
    clang-format -i queue.c

sort: -:449: disorder: oneline

Maybe Hook should also be fixed in the same time. Temporarily, I commit without this PR, because I can live with the space syntax, but I can't afford that commit is not allowed.
@gg21-aping Please check and try to fix git hook though.

@jserv
Copy link
Contributor

jserv commented Mar 19, 2025

Maybe Hook should also be fixed in the same time. Temporarily, I commit without this PR, because I can live with the space syntax, but I can't afford that commit is not allowed. @gg21-aping Please check and try to fix git hook though.

Create a new issue along with comprehensive descriptions.

yy214123 added a commit to yy214123/lab0-c that referenced this pull request Mar 19, 2025
Applied clang-format fixes from PR sysprog21#232.

Change-Id: I2f8d1a5a6f0a8242e47a98d27c87550356de0259
yy214123 added a commit to yy214123/lab0-c that referenced this pull request Mar 20, 2025
Applied clang-format fixes from PR sysprog21#232.

Change-Id: I2f8d1a5a6f0a8242e47a98d27c87550356de0259
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