diff options
| author | dundargoc <gocdundar@gmail.com> | 2023-10-06 17:43:23 +0200 |
|---|---|---|
| committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-10-09 16:52:28 +0200 |
| commit | 6c0f900699293937435591412e4285e313703bc7 (patch) | |
| tree | 8de906c4a1ecd298587144c0f01e812d3720dd13 /.github/workflows | |
| parent | 55be4a4e26eafd06704a465ce85cf9526115e0f1 (diff) | |
| download | rneovim-6c0f900699293937435591412e4285e313703bc7.tar.gz rneovim-6c0f900699293937435591412e4285e313703bc7.tar.bz2 rneovim-6c0f900699293937435591412e4285e313703bc7.zip | |
ci: enable clang-analyzer warnings
This adds the checks in https://neovim.io/doc/reports/clang/ when using
clang-tidy. The strategy is to enable all clang-analyzer checks, and
disable only the checks for the warnings that exist currently. This
allows us to eliminate each warning type without blocking ongoing work,
but also without adding bugs for already eliminated warnings.
The plan is to eventually eliminate https://neovim.io/doc/reports/clang/
by completely integrating it into the clang-tidy check.
Also add make and cmake targets `clang-analyzer` to run this check.
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/test.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 585e0223f0..8c86ad5fcf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -83,6 +83,20 @@ jobs: name: uncrustify run: cmake --build build --target lintc-uncrustify + clang-analyzer: + runs-on: ubuntu-22.04 + timeout-minutes: 20 + steps: + - uses: actions/checkout@v4 + - run: ./.github/scripts/install_deps.sh + - uses: ./.github/actions/cache + - name: Build third-party deps + run: | + cmake -S cmake.deps -B .deps -G Ninja + cmake --build .deps + cmake -B build -G Ninja + - run: cmake --build build --target clang-analyzer + posix: name: ${{ matrix.runner }} ${{ matrix.flavor }} (cc=${{ matrix.cc }}) strategy: |