Skip to content

Commit 6ce2a67

Browse files
authored
Merge branch 'main' into 14113
2 parents d649490 + 92fffee commit 6ce2a67

170 files changed

Lines changed: 5463 additions & 2220 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/CI-cygwin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
# Cygwin will always link the binaries even if they already exist. The linking is also extremely slow. So just run the "check" target which includes all the binaries.
5151
- name: Build all and run test
5252
run: |
53-
C:\cygwin\bin\bash.exe -l -c cd %GITHUB_WORKSPACE% && make VERBOSE=1 -j%NUMBER_OF_PROCESSORS% check
53+
C:\cygwin\bin\bash.exe -l -c cd %GITHUB_WORKSPACE% && make VERBOSE=1 -j%NUMBER_OF_PROCESSORS% CXXOPTS="-Werror" test
5454
5555
- name: Extra test for misra
5656
run: |

.github/workflows/CI-mingw.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,24 +53,23 @@ jobs:
5353
with:
5454
key: ${{ github.workflow }}-${{ github.job }}-${{ matrix.os }}
5555

56-
# TODO: bail out on warning
5756
- name: Build cppcheck
5857
run: |
5958
export PATH="/mingw64/lib/ccache/bin:$PATH"
6059
# set RDYNAMIC to work around broken MinGW detection
6160
# use lld for faster linking
62-
make VERBOSE=1 RDYNAMIC=-lshlwapi LDOPTS=-fuse-ld=lld -j$(nproc) cppcheck
61+
make VERBOSE=1 RDYNAMIC=-lshlwapi LDOPTS=-fuse-ld=lld -j$(nproc) CXXOPTS="-Werror" cppcheck
6362
6463
- name: Build test
6564
run: |
6665
export PATH="/mingw64/lib/ccache/bin:$PATH"
6766
# set RDYNAMIC to work around broken MinGW detection
6867
# use lld for faster linking
69-
make VERBOSE=1 RDYNAMIC=-lshlwapi LDOPTS=-fuse-ld=lld -j$(nproc) testrunner
68+
make VERBOSE=1 RDYNAMIC=-lshlwapi LDOPTS=-fuse-ld=lld -j$(nproc) CXXOPTS="-Werror" testrunner
7069
7170
- name: Run test
7271
run: |
7372
export PATH="/mingw64/lib/ccache/bin:$PATH"
7473
# set RDYNAMIC to work around broken MinGW detection
7574
# use lld for faster linking
76-
make VERBOSE=1 RDYNAMIC=-lshlwapi LDOPTS=-fuse-ld=lld -j$(nproc) check
75+
make VERBOSE=1 RDYNAMIC=-lshlwapi LDOPTS=-fuse-ld=lld -j$(nproc) CXXOPTS="-Werror" test

.github/workflows/CI-unixish-docker.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ jobs:
6565
run: |
6666
mkdir cmake.output
6767
cd cmake.output
68-
cmake -G "Unix Makefiles" -DHAVE_RULES=On -DBUILD_TESTS=On -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ..
68+
cmake -G "Unix Makefiles" -DHAVE_RULES=On -DBUILD_TESTS=On -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On -DCMAKE_COMPILE_WARNING_AS_ERROR=On -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ..
6969
cmake --build . -- -j$(nproc)
7070
7171
- name: CMake build (with GUI)
7272
if: matrix.build_gui
7373
run: |
74-
cmake -S . -B cmake.output -G "Unix Makefiles" -DHAVE_RULES=On -DBUILD_TESTS=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
74+
cmake -S . -B cmake.output -G "Unix Makefiles" -DHAVE_RULES=On -DBUILD_TESTS=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On -DCMAKE_COMPILE_WARNING_AS_ERROR=On -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
7575
cmake --build cmake.output -- -j$(nproc)
7676
7777
- name: Run CMake test
@@ -111,16 +111,16 @@ jobs:
111111
- name: Build cppcheck
112112
run: |
113113
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
114-
make -j$(nproc) HAVE_RULES=yes CXXOPTS="-w"
114+
make -j$(nproc) HAVE_RULES=yes CXXOPTS="-Werror"
115115
116116
- name: Build test
117117
run: |
118118
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
119-
make -j$(nproc) testrunner HAVE_RULES=yes CXXOPTS="-w"
119+
make -j$(nproc) HAVE_RULES=yes CXXOPTS="-Werror" testrunner
120120
121121
- name: Run test
122122
run: |
123-
make -j$(nproc) check HAVE_RULES=yes
123+
make -j$(nproc) HAVE_RULES=yes test
124124
125125
# requires python3
126126
- name: Run extra tests

.github/workflows/CI-unixish.yml

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
strategy:
2222
matrix:
23-
os: [ubuntu-22.04, macos-13, macos-15]
23+
os: [ubuntu-22.04, macos-15]
2424
fail-fast: false # Prefer quick result
2525

2626
runs-on: ${{ matrix.os }}
@@ -58,13 +58,13 @@ jobs:
5858
- name: CMake build on ubuntu (with GUI / system tinyxml2)
5959
if: contains(matrix.os, 'ubuntu')
6060
run: |
61-
cmake -S . -B cmake.output.tinyxml2 -G "Unix Makefiles" -DHAVE_RULES=On -DBUILD_TESTS=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On -DUSE_BUNDLED_TINYXML2=Off -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
61+
cmake -S . -B cmake.output.tinyxml2 -G "Unix Makefiles" -DHAVE_RULES=On -DBUILD_TESTS=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On -DUSE_BUNDLED_TINYXML2=Off -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On -DCMAKE_COMPILE_WARNING_AS_ERROR=On -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
6262
cmake --build cmake.output.tinyxml2 -- -j$(nproc)
6363
6464
- name: CMake build on macos (with GUI / system tinyxml2)
6565
if: contains(matrix.os, 'macos')
6666
run: |
67-
cmake -S . -B cmake.output.tinyxml2 -G "Unix Makefiles" -DHAVE_RULES=On -DBUILD_TESTS=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On -DUSE_BUNDLED_TINYXML2=Off -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DQt6_DIR=$(brew --prefix qt@6)/lib/cmake/Qt6
67+
cmake -S . -B cmake.output.tinyxml2 -G "Unix Makefiles" -DHAVE_RULES=On -DBUILD_TESTS=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On -DUSE_BUNDLED_TINYXML2=Off -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On -DCMAKE_COMPILE_WARNING_AS_ERROR=On -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DQt6_DIR=$(brew --prefix qt@6)/lib/cmake/Qt6
6868
cmake --build cmake.output.tinyxml2 -- -j$(nproc)
6969
7070
- name: Run CMake test (system tinyxml2)
@@ -75,7 +75,7 @@ jobs:
7575

7676
strategy:
7777
matrix:
78-
os: [ubuntu-22.04, macos-13, macos-15]
78+
os: [ubuntu-22.04, macos-15]
7979
fail-fast: false # Prefer quick result
8080

8181
runs-on: ${{ matrix.os }}
@@ -127,12 +127,12 @@ jobs:
127127
- name: Run CMake on ubuntu (with GUI)
128128
if: contains(matrix.os, 'ubuntu')
129129
run: |
130-
cmake -S . -B cmake.output -G "Unix Makefiles" -DHAVE_RULES=On -DBUILD_TESTS=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_INSTALL_PREFIX=cppcheck-cmake-install
130+
cmake -S . -B cmake.output -G "Unix Makefiles" -DHAVE_RULES=On -DBUILD_TESTS=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On -DCMAKE_COMPILE_WARNING_AS_ERROR=On -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_INSTALL_PREFIX=cppcheck-cmake-install
131131
132132
- name: Run CMake on macos (with GUI)
133133
if: contains(matrix.os, 'macos')
134134
run: |
135-
cmake -S . -B cmake.output -G "Unix Makefiles" -DHAVE_RULES=On -DBUILD_TESTS=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_INSTALL_PREFIX=cppcheck-cmake-install -DQt6_DIR=$(brew --prefix qt@6)/lib/cmake/Qt6
135+
cmake -S . -B cmake.output -G "Unix Makefiles" -DHAVE_RULES=On -DBUILD_TESTS=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On -DCMAKE_COMPILE_WARNING_AS_ERROR=On -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_INSTALL_PREFIX=cppcheck-cmake-install -DQt6_DIR=$(brew --prefix qt@6)/lib/cmake/Qt6
136136
137137
- name: Run CMake build
138138
run: |
@@ -195,7 +195,7 @@ jobs:
195195

196196
strategy:
197197
matrix:
198-
os: [ubuntu-22.04, macos-13, macos-15]
198+
os: [ubuntu-22.04, macos-15]
199199
fail-fast: false # Prefer quick result
200200

201201
runs-on: ${{ matrix.os }}
@@ -219,7 +219,7 @@ jobs:
219219
- name: Build with Unsigned char
220220
run: |
221221
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
222-
make -j$(nproc) CXXOPTS=-funsigned-char testrunner
222+
make -j$(nproc) CXXOPTS="-Werror -funsigned-char" testrunner
223223
224224
- name: Test with Unsigned char
225225
run: |
@@ -229,7 +229,7 @@ jobs:
229229

230230
strategy:
231231
matrix:
232-
os: [ubuntu-22.04, macos-13, macos-15]
232+
os: [ubuntu-22.04, macos-15]
233233
fail-fast: false # Prefer quick result
234234

235235
runs-on: ${{ matrix.os }}
@@ -253,17 +253,17 @@ jobs:
253253
- name: Build with TEST_MATHLIB_VALUE
254254
run: |
255255
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
256-
make -j$(nproc) CPPOPTS=-DTEST_MATHLIB_VALUE all
256+
make -j$(nproc) CXXOPTS="-Werror" CPPOPTS=-DTEST_MATHLIB_VALUE all
257257
258258
- name: Test with TEST_MATHLIB_VALUE
259259
run: |
260-
make -j$(nproc) CPPOPTS=-DTEST_MATHLIB_VALUE check
260+
make -j$(nproc) test
261261
262262
check_nonneg:
263263

264264
strategy:
265265
matrix:
266-
os: [ubuntu-22.04, macos-13, macos-15]
266+
os: [ubuntu-22.04, macos-15]
267267
fail-fast: false # Prefer quick result
268268

269269
runs-on: ${{ matrix.os }}
@@ -281,13 +281,13 @@ jobs:
281281
282282
- name: Check syntax with NONNEG
283283
run: |
284-
make check-nonneg
284+
make check-nonneg CXXOPTS="-Werror"
285285
286286
build_cmake_boost:
287287

288288
strategy:
289289
matrix:
290-
os: [macos-13, macos-15] # non-macos platforms are already built with Boost in other contexts
290+
os: [macos-15] # non-macos platforms are already built with Boost in other contexts
291291
fail-fast: false # Prefer quick result
292292

293293
runs-on: ${{ matrix.os }}
@@ -337,7 +337,7 @@ jobs:
337337
338338
- name: Run CMake on macOS (with Boost)
339339
run: |
340-
cmake -S . -B cmake.output.boost -G "Unix Makefiles" -DBUILD_TESTS=On -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
340+
cmake -S . -B cmake.output.boost -G "Unix Makefiles" -DBUILD_TESTS=On -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On -DCMAKE_COMPILE_WARNING_AS_ERROR=On -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
341341
grep -q '\-DHAVE_BOOST' ./cmake.output.boost/compile_commands.json
342342
343343
- name: Build with CMake on macOS (with Boost)
@@ -348,12 +348,10 @@ jobs:
348348

349349
strategy:
350350
matrix:
351-
os: [ubuntu-22.04, macos-13, macos-15]
351+
os: [ubuntu-22.04, macos-15]
352352
include:
353353
- xdist_n: auto
354354
# FIXME: test_color_tty fails with xdist - see #13278
355-
- os: macos-13
356-
xdist_n: '1'
357355
- os: macos-15
358356
xdist_n: '1'
359357
fail-fast: false # Prefer quick result
@@ -414,16 +412,16 @@ jobs:
414412
- name: Build cppcheck
415413
run: |
416414
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
417-
make -j$(nproc) HAVE_RULES=yes
415+
make -j$(nproc) CXXOPTS="-Werror" HAVE_RULES=yes
418416
419417
- name: Build test
420418
run: |
421419
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
422-
make -j$(nproc) testrunner HAVE_RULES=yes
420+
make -j$(nproc) CXXOPTS="-Werror" HAVE_RULES=yes testrunner
423421
424422
- name: Run test
425423
run: |
426-
make -j$(nproc) check HAVE_RULES=yes
424+
make -j$(nproc) HAVE_RULES=yes test
427425
428426
# requires "gnu-sed" installed on macos
429427
- name: Run extra tests
@@ -499,7 +497,7 @@ jobs:
499497
500498
- name: Test Signalhandler
501499
run: |
502-
cmake -S . -B build.cmake.signal -G "Unix Makefiles" -DBUILD_TESTS=On
500+
cmake -S . -B build.cmake.signal -G "Unix Makefiles" -DBUILD_TESTS=On -DCMAKE_COMPILE_WARNING_AS_ERROR=On
503501
cmake --build build.cmake.signal --target test-signalhandler -- -j$(nproc)
504502
# TODO: how to run this without copying the file?
505503
cp build.cmake.signal/bin/test-s* .
@@ -510,7 +508,7 @@ jobs:
510508
- name: Test Stacktrace
511509
if: contains(matrix.os, 'ubuntu')
512510
run: |
513-
cmake -S . -B build.cmake.stack -G "Unix Makefiles" -DBUILD_TESTS=On
511+
cmake -S . -B build.cmake.stack -G "Unix Makefiles" -DBUILD_TESTS=On -DCMAKE_COMPILE_WARNING_AS_ERROR=On
514512
cmake --build build.cmake.stack --target test-stacktrace -- -j$(nproc)
515513
# TODO: how to run this without copying the file?
516514
cp build.cmake.stack/bin/test-s* .
@@ -611,7 +609,7 @@ jobs:
611609
run: |
612610
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
613611
# compile with verification and ast matchers
614-
make -j$(nproc) -s CXXOPTS="-g -O2 -w" CPPOPTS="-DCHECK_INTERNAL -DHAVE_BOOST" MATCHCOMPILER=yes VERIFY=1
612+
make -j$(nproc) CXXOPTS="-Werror -g -O2" CPPOPTS="-DCHECK_INTERNAL -DHAVE_BOOST" MATCHCOMPILER=yes VERIFY=1
615613
616614
- name: CMake
617615
run: |

.github/workflows/CI-windows.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
strategy:
2828
matrix:
2929
os: [windows-2022, windows-2025]
30-
qt_ver: [6.9.1]
30+
qt_ver: [6.10.0]
3131
fail-fast: false
3232

3333
runs-on: ${{ matrix.os }}
@@ -55,7 +55,7 @@ jobs:
5555
run: |
5656
rem TODO: enable rules?
5757
rem specify Release build so matchcompiler is used
58-
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_COMPILE_WARNING_AS_ERROR=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On -DBUILD_ONLINE_HELP=On -DCMAKE_INSTALL_PREFIX=cppcheck-cmake-install || exit /b !errorlevel!
58+
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_COMPILE_WARNING_AS_ERROR=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On -DBUILD_ONLINE_HELP=On -DCMAKE_INSTALL_PREFIX=cppcheck-cmake-install -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
5959
6060
- name: Build GUI release
6161
run: |
@@ -91,11 +91,11 @@ jobs:
9191
with:
9292
persist-credentials: false
9393

94-
- name: Set up Python 3.13
94+
- name: Set up Python
9595
if: matrix.config == 'release'
9696
uses: actions/setup-python@v5
9797
with:
98-
python-version: '3.13'
98+
python-version: '3.14'
9999
check-latest: true
100100

101101
- name: Set up Visual Studio environment
@@ -125,7 +125,7 @@ jobs:
125125
7z x pcre-%PCRE_VERSION%.zip || exit /b !errorlevel!
126126
cd pcre-%PCRE_VERSION% || exit /b !errorlevel!
127127
git apply --ignore-space-change ..\externals\pcre.patch || exit /b !errorlevel!
128-
cmake . -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DPCRE_BUILD_PCRECPP=Off -DPCRE_BUILD_TESTS=Off -DPCRE_BUILD_PCREGREP=Off -DCMAKE_POLICY_VERSION_MINIMUM=3.5 || exit /b !errorlevel!
128+
cmake . -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DPCRE_BUILD_PCRECPP=Off -DPCRE_BUILD_TESTS=Off -DPCRE_BUILD_PCREGREP=Off -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
129129
nmake || exit /b !errorlevel!
130130
copy pcre.h ..\externals || exit /b !errorlevel!
131131
copy pcre.lib ..\externals\pcre64.lib || exit /b !errorlevel!
@@ -207,7 +207,7 @@ jobs:
207207
- name: Test SEH wrapper
208208
if: matrix.config == 'release'
209209
run: |
210-
cmake -S . -B build.cmake.seh -DBUILD_TESTS=On || exit /b !errorlevel!
210+
cmake -S . -B build.cmake.seh -DBUILD_TESTS=On -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
211211
cmake --build build.cmake.seh --target test-sehwrapper || exit /b !errorlevel!
212212
:: TODO: how to run this without copying the file?
213213
copy build.cmake.seh\bin\Debug\test-sehwrapper.exe . || exit /b !errorlevel!

.github/workflows/asan.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ jobs:
2121
runs-on: ubuntu-22.04
2222

2323
env:
24-
QT_VERSION: 6.9.1
24+
QT_VERSION: 6.10.0
2525
ASAN_OPTIONS: detect_stack_use_after_return=1
26+
LSAN_OPTIONS: suppressions=lsan-suppr.txt:print_suppressions=0
2627
# TODO: figure out why there are cache misses with PCH enabled
2728
CCACHE_SLOPPINESS: pch_defines,time_macros
2829

@@ -36,10 +37,10 @@ jobs:
3637
with:
3738
key: ${{ github.workflow }}-${{ github.job }}-${{ matrix.os }}
3839

39-
- name: Set up Python 3.13
40+
- name: Set up Python
4041
uses: actions/setup-python@v5
4142
with:
42-
python-version: '3.13'
43+
python-version: '3.14'
4344
check-latest: true
4445

4546
- name: Install missing software on ubuntu
@@ -71,10 +72,9 @@ jobs:
7172
python3 -m pip install pytest-xdist
7273
python3 -m pip install psutil
7374
74-
# TODO: disable all warnings
7575
- name: CMake
7676
run: |
77-
cmake -S . -B cmake.output -DCMAKE_BUILD_TYPE=RelWithDebInfo -DHAVE_RULES=On -DBUILD_TESTS=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On -DUSE_MATCHCOMPILER=Verify -DANALYZE_ADDRESS=On -DENABLE_CHECK_INTERNAL=On -DUSE_BOOST=On -DCPPCHK_GLIBCXX_DEBUG=Off -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On -DCMAKE_GLOBAL_AUTOGEN_TARGET=On -DDISABLE_DMAKE=On -DFILESDIR= -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
77+
cmake -S . -B cmake.output -DCMAKE_BUILD_TYPE=RelWithDebInfo -DHAVE_RULES=On -DBUILD_TESTS=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On -DUSE_MATCHCOMPILER=Verify -DANALYZE_ADDRESS=On -DENABLE_CHECK_INTERNAL=On -DUSE_BOOST=On -DCPPCHK_GLIBCXX_DEBUG=Off -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On -DCMAKE_GLOBAL_AUTOGEN_TARGET=On -DDISABLE_DMAKE=On -DFILESDIR= -DCMAKE_COMPILE_WARNING_AS_ERROR=On -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
7878
env:
7979
CC: clang-21
8080
CXX: clang++-21
@@ -100,6 +100,7 @@ jobs:
100100
101101
- name: Run CTest
102102
run: |
103+
cp lsan-suppr.txt cmake.output/bin
103104
ctest --test-dir cmake.output --output-on-failure -j$(nproc)
104105
105106
- name: Run test/cli
@@ -148,8 +149,8 @@ jobs:
148149
./cmake.output/bin/cppcheck $selfcheck_options $cppcheck_options --addon=naming.json frontend || ec=1
149150
./cmake.output/bin/cppcheck $selfcheck_options $cppcheck_options --addon=naming.json -Ifrontend cli || ec=1
150151
./cmake.output/bin/cppcheck $selfcheck_options $cppcheck_options --addon=naming.json --enable=internal lib || ec=1
151-
./cmake.output/bin/cppcheck $selfcheck_options $cppcheck_options -DQT_VERSION=0x060000 -DQ_MOC_OUTPUT_REVISION=69 -DQT_CHARTS_LIB -DQT_MOC_HAS_STRINGDATA --library=qt --addon=naming.json -Icmake.output/gui -Ifrontend -Igui gui/*.cpp cmake.output/gui/*.cpp || ec=1
152+
./cmake.output/bin/cppcheck $selfcheck_options $cppcheck_options -DQT_VERSION=0x060000 -DQ_MOC_OUTPUT_REVISION=69 -DQT_CHARTS_LIB -DQT_MOC_HAS_STRINGDATA --library=qt --addon=naming.json -Icmake.output/gui -Ifrontend -Igui gui/*.cpp cmake.output/gui || ec=1
152153
./cmake.output/bin/cppcheck $selfcheck_options $cppcheck_options -Icli -Ifrontend test/*.cpp || ec=1
153154
./cmake.output/bin/cppcheck $selfcheck_options $cppcheck_options -Icli tools/dmake/*.cpp || ec=1
154-
./cmake.output/bin/cppcheck $selfcheck_options $cppcheck_options -DQ_MOC_OUTPUT_REVISION=69 -DQT_CHARTS_LIB -DQT_MOC_HAS_STRINGDATA --library=qt -Icmake.output/tools/triage -Igui tools/triage/*.cpp cmake.output/tools/triage/*.cpp || ec=1
155+
./cmake.output/bin/cppcheck $selfcheck_options $cppcheck_options -DQ_MOC_OUTPUT_REVISION=69 -DQT_CHARTS_LIB -DQT_MOC_HAS_STRINGDATA --library=qt -Icmake.output/tools/triage -Igui tools/triage/*.cpp cmake.output/tools/triage || ec=1
155156
exit $ec

.github/workflows/clang-tidy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-22.04
2525

2626
env:
27-
QT_VERSION: 6.9.1
27+
QT_VERSION: 6.10.0
2828

2929
steps:
3030
- uses: actions/checkout@v4

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- name: Build cppcheck
4747
if: matrix.language == 'cpp'
4848
run: |
49-
make -j$(nproc) HAVE_RULES=yes cppcheck
49+
make -j$(nproc) CXXOPTS="-Werror" HAVE_RULES=yes CPPCHK_GLIBCXX_DEBUG= cppcheck
5050
5151
- name: Perform CodeQL Analysis
5252
uses: github/codeql-action/analyze@v3

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: Compile instrumented
4444
run: |
4545
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
46-
make -j$(nproc) all CXXOPTS="-g -fprofile-arcs -ftest-coverage" HAVE_RULES=yes
46+
make -j$(nproc) CXXOPTS="-Werror -g -fprofile-arcs -ftest-coverage" HAVE_RULES=yes CPPCHK_GLIBCXX_DEBUG= all
4747
4848
- name: Run instrumented tests
4949
run: |

0 commit comments

Comments
 (0)