Hello! I was wonder if folks would be open to adding clang-format to the c-api. I've grown used to it and like not having to manually format things :) If there is interest in adding clang-format, would people want that enforced via CI like rustfmt?
I'd be down for that :+1:
Tyler Rockwood has marked this topic as resolved.
Tyler Rockwood said:
Hello! I was wonder if folks would be open to adding clang-format to the c-api. I've grown used to it and like not having to manually format things :) If there is interest in adding clang-format, would people want that enforced via CI like rustfmt?
If this helps I already added a clang-format invocation to the c++ code generator at https://github.com/cpetig/wit-bindgen/blob/main/crates/cpp/src/lib.rs#L138 - it should be made more robust though.
Thanks Christof! This ended up being resolved here: https://github.com/bytecodealliance/wasmtime/pull/7601, it was more about checked in code, not generated code.
Last updated: Nov 22 2024 at 16:03 UTC