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

skip automatic indentation inside comments #804

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

dicej
Copy link
Collaborator

@dicej dicej commented Jan 4, 2024

This fixes broken indentation due to
e.g. wasi:io/streams#output-stream.blocking-write-and-flush, which has a doc comment that contains curly brackets.

This isn't generally a problem for Rust, which uses rustfmt if available, but leads to headaches for C if clang-format isn't handy.

This fixes broken indentation due to
e.g. `wasi:io/streams#output-stream.blocking-write-and-flush`, which has a
doc comment that contains curly brackets.

This isn't generally a problem for Rust, which uses `rustfmt` if available, but
leads to headaches for C if `clang-format` isn't handy.

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
@alexcrichton alexcrichton merged commit d831ee7 into bytecodealliance:main Jan 4, 2024
9 checks passed
dicej added a commit to dicej/wasi-libc that referenced this pull request Jan 5, 2024
This includes bytecodealliance/wit-bindgen#804 (fix
broken indentation in generated code) and
bytecodealliance/wit-bindgen#805 (support overriding
world name and adding a suffix to the component type custom section).

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
dicej added a commit to dicej/wasi-libc that referenced this pull request Jan 11, 2024
This includes bytecodealliance/wit-bindgen#804 (fix
broken indentation in generated code) and
bytecodealliance/wit-bindgen#805 (support overriding
world name and adding a suffix to the component type custom section).

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
sunfishcode pushed a commit to WebAssembly/wasi-libc that referenced this pull request Jan 11, 2024
* add WASI Preview 2 bindings

This adds C bindings generated from the `wasi:cli/imports@0.2.0-rc-2023-12-05`
world, plus a makefile target to regenerate them from the WIT source files.

We'll use these bindings to call Preview 2 host functions when building for the
`wasm32-wasi-preview2` target.

Signed-off-by: Joel Dice <joel.dice@fermyon.com>

* update to pre-release of `wit-bindgen` 0.17.0

This includes bytecodealliance/wit-bindgen#804 (fix
broken indentation in generated code) and
bytecodealliance/wit-bindgen#805 (support overriding
world name and adding a suffix to the component type custom section).

Signed-off-by: Joel Dice <joel.dice@fermyon.com>

* test all targets; update preview2 expected output files

Signed-off-by: Joel Dice <joel.dice@fermyon.com>

* build for `wasm32-wasi-threads` before testing it

Signed-off-by: Joel Dice <joel.dice@fermyon.com>

* move generated bindings per review feedback

Since these files aren't part of cloudlibc, no reason to put them under the
cloudlibc directory.

Signed-off-by: Joel Dice <joel.dice@fermyon.com>

* move preview2.h to wasi directory

Signed-off-by: Joel Dice <joel.dice@fermyon.com>

---------

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
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