build: upgrade clang-format to v18
Fixes #50157 (closed)
This PR updates the Clang formatter from the unmaintained clang-format
to @magic-akari's amazing @wasm-fmt/clang-format
library.
The old formatter was unmaintained and vastly out of date.