[pre-commit.ci] pre-commit autoupdate #91
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check code with include what you use | |
on: [push] | |
jobs: | |
iwyu: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Prepare environment | |
run: sudo pip install compdb && sudo apt install -y iwyu clang-9 | |
- name: Configure build | |
run: cmake -Bbuild -H$GITHUB_WORKSPACE | |
- name: Create new compilation database | |
run: compdb -p build/ list > compile_commands.json | |
- name: Run Include What You Use | |
run: iwyu_tool -p compile_commands.json |