Skip to content

iwyu.yml: work around missing includes for Fedora [skip ci] #7625

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

Merged
merged 2 commits into from
Jun 30, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/iwyu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ jobs:
- os: ubuntu-22.04
image: "fedora:latest"
stdlib: libstdc++
- os: ubuntu-22.04
image: "fedora:latest"
stdlib: libc++
clang_inc: '-isystem/usr/lib/clang/20/include'
# TODO: disable because it currently fails with "error: <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header."
#- os: ubuntu-22.04
# image: "fedora:latest"
# stdlib: libc++
# clang_inc: '-isystem/usr/lib/clang/20/include'
- os: macos-13
image: ""
stdlib: libc++ # no libstdc++ on macOS
Expand Down Expand Up @@ -144,9 +147,8 @@ jobs:

- name: iwyu_tool
run: |
# -isystem/usr/lib/clang/17/include
# TODO: remove -stdlib= - it should have been taken from the compilation database
iwyu_tool -p cmake.output -j $(nproc) -- -w -Xiwyu --max_line_length=1024 -Xiwyu --comment_style=long -Xiwyu --quoted_includes_first -Xiwyu --update_comments -stdlib=${{ matrix.stdlib }} ${{ matrix.mapping_file_opt }} > iwyu.log
iwyu_tool -p cmake.output -j $(nproc) -- -w -Xiwyu --max_line_length=1024 -Xiwyu --comment_style=long -Xiwyu --quoted_includes_first -Xiwyu --update_comments -stdlib=${{ matrix.stdlib }} ${{ matrix.mapping_file_opt }} ${{ matrix.clang_inc }} > iwyu.log

- uses: actions/upload-artifact@v4
if: success() || failure()
Expand Down