Skip to content

Use consistent include order in our standard headers. NFC#26434

Open
sbc100 wants to merge 1 commit intoemscripten-core:mainfrom
sbc100:include_order
Open

Use consistent include order in our standard headers. NFC#26434
sbc100 wants to merge 1 commit intoemscripten-core:mainfrom
sbc100:include_order

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Mar 11, 2026

This change was generated using:

clang-tidy -checks='llvm-include-order' -fix-errors -fix system/include/emscripten/*.h -- -x c++-header -std=c++17 --sysroot=cache/sysroot --target=wasm32-emscripten -iwithsysroot/include/compat

I also manually split the headers such that the internal emscripten headers always come first a group before any system headers.

This change initially resulted in the failure of test_em_js_bool_macro_expansion which required that addition of stdbool.h to em_js.h.

@sbc100 sbc100 changed the title Fix include order in out standard headers. NFC Fix include order in our standard headers. NFC Mar 11, 2026
@sbc100 sbc100 requested a review from kripken March 11, 2026 20:24
@sbc100 sbc100 enabled auto-merge (squash) March 11, 2026 21:13
@sbc100 sbc100 changed the title Fix include order in our standard headers. NFC Use consistent include order in our standard headers. NFC Mar 11, 2026
This change was generated using:

```
clang-tidy -checks='llvm-include-order' -fix-errors -fix system/include/emscripten/*.h -- -x c++-header -std=c++17 --sysroot=cache/sysroot --target=wasm32-emscripten -iwithsysroot/include/compat
```
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