Skip to content

Commit

Permalink
Update include-what-you-use.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hexagonrecursion committed Nov 27, 2024
1 parent a8d8a28 commit ceb6369
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/include-what-you-use.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,16 @@ jobs:
- name: Genarate a compilation database
run: cmake -S . -B build -D=CMAKE_EXPORT_COMPILE_COMMANDS=ON -D=TESTS=ON
- name: Collect include-what-you-use recommendations
run: set -o pipefail; iwyu_tool -j 4 -p build -- -Xiwyu --no_default_mapping -Xiwyu --mapping_file=$PWD/include-what-you-use.imp | tee build/iwyu-log.txt
run: |
set -o pipefail;
iwyu_tool \
-j 4 \
-p build \
-- \
-Xiwyu --no_default_mapping \
-Xiwyu --mapping_file=$PWD/include-what-you-use.imp \
-Xiwyu --quoted_includes_first \
| tee build/iwyu-log.txt
- name: Apply include-what-you-use recommendations
run: fix_include --nosafe_headers --noreorder --ignore_re '/lib/' < build/iwyu-log.txt
- name: Check whether there are any changes
Expand Down

0 comments on commit ceb6369

Please sign in to comment.