[style] apply IWYU to public headers (#11580)

It would be easier to use OpenThread public headers if they are
self-contained and follows the IWYU style guide. This commit fixes some
style issues to make the public headers self-contained and IWYU. The
existing pretty check is also extended to verify the OpenThread public
headers are self-contained and follows IWYU.
This commit is contained in:
Yakun Xu
2025-06-11 06:37:41 +09:00
committed by GitHub
parent c8714060ea
commit 6b03321cb2
86 changed files with 317 additions and 39 deletions
+2 -1
View File
@@ -63,13 +63,14 @@ jobs:
- name: Bootstrap
run: |
sudo apt-get update
sudo apt-get --no-install-recommends install -y clang-format-14 clang-tidy-14 shellcheck
sudo apt-get --no-install-recommends install -y clang-format-14 clang-tidy-14 shellcheck iwyu
python3 -m pip install yapf==0.31.0
sudo snap install shfmt
npm install [email protected]
- name: Check
run: |
script/make-pretty check
script/check-iwyu-public-header
markdown-lint-check:
runs-on: ubuntu-22.04