clang15: recent update broke clang-analyzer
We're using alpine:edge for CI static analysis, which got broken by the recent llvm/clang update.
Please try the Dockerfile
below.
These 2 error messages are new relative to clang15 (15.0.7-r2):
Use of uninitialized value $JS in -r at /usr/bin/scan-build line 453.
scan-build: Cannot find 'sorttable.js'.
Dockerfile:
FROM docker.io/library/alpine:edge
RUN apk update && apk upgrade && apk add \
clang clang-analyzer \
g++ \
make \
&& true
RUN true \
&& echo 'int main() { int x; return x; }' > test1.c \
&& echo 'int main() { int x; return x; }' > test2.cpp \
&& echo 'all: test1 test2' > Makefile \
&& echo 'test1: test1.o' >> Makefile \
&& echo 'test2: test2.o' >> Makefile \
&& CCC_CC=clang CCC_CXX=clang++ scan-build make \
&& true