Skip to content

Commit

Permalink
[#14]: Update to clang-12
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobDomagala committed May 26, 2021
1 parent 4036458 commit 8544bc8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions docker/static_analysis.dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
FROM ubuntu:20.04 as base
FROM ubuntu:21.04 as base

ENV CXX=clang++
ENV CC=clang

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y python3 python3-pip git \
build-essential clang-11 clang-tidy-11 wget libssl-dev ninja-build && \
build-essential clang-12 clang-tidy-12 wget libssl-dev ninja-build && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN pip3 install PyGithub

RUN ln -s \
"$(which clang++-11)" \
"$(which clang++-12)" \
/usr/bin/clang++

RUN ln -s \
"$(which clang-11)" \
"$(which clang-12)" \
/usr/bin/clang

RUN ln -s \
Expand Down
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON "$INPUT_CMAKE_ARGS" ..

if [ -z "$INPUT_EXCLUDE_DIR" ]; then
eval cppcheck --project=compile_commands.json "$INPUT_CPPCHECK_ARGS" --output-file=cppcheck.txt
run-clang-tidy-11 >(tee "clang_tidy.txt")
run-clang-tidy-12 >(tee "clang_tidy.txt")
else
eval cppcheck --project=compile_commands.json "$INPUT_CPPCHECK_ARGS" --output-file=cppcheck.txt -i"$GITHUB_WORKSPACE/$INPUT_EXCLUDE_DIR"
run-clang-tidy-11 "^((?!$GITHUB_WORKSPACE/$INPUT_EXCLUDE_DIR).)*$" > clang_tidy.txt
run-clang-tidy-12 "^((?!$GITHUB_WORKSPACE/$INPUT_EXCLUDE_DIR).)*$" > clang_tidy.txt
fi

python3 /run_static_analysis.py -cc cppcheck.txt -ct clang_tidy.txt

0 comments on commit 8544bc8

Please sign in to comment.