Commit c7161f71 authored by Albert Astals Cid's avatar Albert Astals Cid

Add a clazy -Werror CI

Enables levels 0, 1 and 2, along with some manual ones
Disables non-pod-globa-static, StructElement would need some rework to
fix it and it's only a bit about optimization of start time, we can live
with it
parent 28e953cb
......@@ -70,3 +70,15 @@ build_mingw64_fedora:
- mkdir -p build && cd build
- mingw64-cmake -G Ninja ..
- ninja
build_clazy:
stage: build
image: fedora:rawhide
before_script:
- dnf install -y 'dnf-command(builddep)'
- dnf builddep -y poppler
- dnf -y install curl make ninja-build openjpeg2-tools clazy clang redhat-rpm-config
script:
- mkdir -p build && cd build
- CC=clang CXX=clazy CXXFLAGS="-Werror -Wno-cast-align -Wno-deprecated-declarations" cmake -G Ninja ..
- CLAZY_CHECKS="level0,level1,level2,isempty-vs-count,qhash-with-char-pointer-key,tr-non-literal,no-non-pod-global-static" ninja
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment