Skip to content

Run Clang Static Analysis #400

Run Clang Static Analysis

Run Clang Static Analysis #400

name: Run Clang Static Analysis
on:
push:
pull_request:
schedule:
- cron: '3 20 * * SUN'
jobs:
clang-analyzer:
name: Clang static analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: sudo apt install clang-tools libipc-run3-perl
- run: ./bootstrap
- run: scan-build ./configure
env:
CFLAGS: -std=c99 -Wall -Wextra -Werror -Wno-unused-function -Wno-unused-parameter
- run: cd src; scan-build --status-bugs make; cd ..
- run: cd bin; scan-build --status-bugs make; cd ..