rockwotj requested alexcrichton for a review on PR #7601.
rockwotj requested wasmtime-core-reviewers for a review on PR #7601.
rockwotj opened PR #7601 from rockwotj:clang-format
to bytecodealliance:main
:
Add a .clang-format for the C code in wasmtime.
We choose the WebKit style because out of all the style options available in .clang-format, it was the closes to the existing style of the c-api crate. I am not really interested in tuning the settings more, but more want consistency and to let the tool format instead of it happening manually.
There is also a check added in CI for it, it always runs and should be very fast. It uses the latest installed
clang-format
binary in GitHub actions, but I am also happy to download a fixed version if we want to pin the version.
rockwotj requested wasmtime-default-reviewers for a review on PR #7601.
alexcrichton commented on PR #7601:
Thanks! Would it actually be reasonable to remove
.clang-format
and leave clang to its defaults? I'm noclang-format
expert myself but if it's common to use the default settings I think that'd be reasonable to do here too
rockwotj updated PR #7601.
rockwotj commented on PR #7601:
Thanks! Would it actually be reasonable to remove
.clang-format
and leave clang to its defaults? I'm noclang-format
expert myself but if it's common to use the default settings I think that'd be reasonable to do here tooI think it defaults to LLVM style, which is fine with me, I generally haven't seen projects do this, but most of my background comes from Google where I have always seen the Google/Chromium style used. I'll remove it :+1:
rockwotj updated PR #7601.
rockwotj updated PR #7601.
rockwotj updated PR #7601.
rockwotj updated PR #7601.
alexcrichton submitted PR review.
alexcrichton submitted PR review.
alexcrichton created PR review comment:
Some more doxygen casualties
alexcrichton created PR review comment:
Oh dear I think the formatting here may be corrupting the doxygen directives
alexcrichton created PR review comment:
The formatting here may be getting a bit confusing too
alexcrichton created PR review comment:
I think the doxygen bits may be corrupted here as well
alexcrichton created PR review comment:
Ditto on comment formatting
alexcrichton created PR review comment:
Looks like this may be becoming a broken link
alexcrichton created PR review comment:
Ditto on formatting
rockwotj updated PR #7601.
rockwotj submitted PR review.
rockwotj created PR review comment:
I just disabled clang format for this file. Let me know if you think it should be on.
rockwotj submitted PR review.
rockwotj created PR review comment:
Fixed.
rockwotj submitted PR review.
rockwotj created PR review comment:
Fixed.
rockwotj submitted PR review.
rockwotj created PR review comment:
Fixed.
rockwotj submitted PR review.
rockwotj created PR review comment:
Had to disable the formating to get this right.
rockwotj submitted PR review.
rockwotj created PR review comment:
Fixed
rockwotj submitted PR review.
rockwotj created PR review comment:
fixed
alexcrichton submitted PR review.
alexcrichton created PR review comment:
Might need some reformatting here
alexcrichton submitted PR review.
rockwotj updated PR #7601.
rockwotj submitted PR review.
rockwotj created PR review comment:
Nice catch! Fixed. Thanks for working with me on this.
alexcrichton has enabled auto merge for PR #7601.
alexcrichton merged PR #7601.
Last updated: Nov 22 2024 at 16:03 UTC