Skip to content

Commit 4012f2a

Browse files
committed
Test clang-18 static analysis
1 parent 921c300 commit 4012f2a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,16 +143,17 @@ jobs:
143143
- name: set up scan-build
144144
run: |
145145
sudo apt-get update -q -y
146-
sudo apt-get install -q -y clang clang-tools libsdl2-dev libsdl2-mixer-dev
146+
sudo apt-get install -q -y libsdl2-dev libsdl2-mixer-dev
147147
wget https://apt.llvm.org/llvm.sh
148148
chmod +x ./llvm.sh
149149
sudo ./llvm.sh 18
150+
sudo apt-get install -q -y clang-18 clang-tools-18
150151
shell: bash
151152
- name: run scan-build without JIT
152-
run: make distclean && scan-build -v -o ~/scan-build --status-bugs --use-cc=clang --force-analyze-debug-code --show-description -analyzer-config stable-report-filename=true -enable-checker valist,nullability make ENABLE_EXT_F=0 ENABLE_SDL=0 ENABLE_JIT=0
153+
run: make distclean && scan-build-18 -v -o ~/scan-build --status-bugs --use-cc=clang-18 --force-analyze-debug-code --show-description -analyzer-config stable-report-filename=true -enable-checker valist,nullability make ENABLE_EXT_F=0 ENABLE_SDL=0 ENABLE_JIT=0
153154
- name: run scan-build with JIT
154155
run: |
155-
make ENABLE_JIT=1 distclean && scan-build -v -o ~/scan-build --status-bugs --use-cc=clang --force-analyze-debug-code --show-description -analyzer-config stable-report-filename=true -enable-checker valist,nullability make ENABLE_EXT_F=0 ENABLE_SDL=0 ENABLE_JIT=1
156+
make ENABLE_JIT=1 distclean && scan-build-18 -v -o ~/scan-build --status-bugs --use-cc=clang-18 --force-analyze-debug-code --show-description -analyzer-config stable-report-filename=true -enable-checker valist,nullability make ENABLE_EXT_F=0 ENABLE_SDL=0 ENABLE_JIT=1
156157
157158
compliance-test:
158159
needs: [detect-code-related-file-changes]

src/devices/plic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
#include <assert.h>
77
#include <stdlib.h>
88

9-
#include "plic.h"
109
#include "../riscv.h"
1110
#include "../riscv_private.h"
11+
#include "plic.h"
1212

1313
void plic_update_interrupts(plic_t *plic)
1414
{

0 commit comments

Comments
 (0)