// StarPU --- Runtime system for heterogeneous multicore architectures.
//
// Copyright (C) 2017-2025  University of Bordeaux, CNRS (LaBRI UMR 5800), Inria
//
// StarPU is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation; either version 2.1 of the License, or (at
// your option) any later version.
//
// StarPU is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// See the GNU Lesser General Public License in COPYING.LGPL for more details.
//
knownConditionTrueFalse
variableScope
ConfigurationNotChecked
shadowVariable
unusedFunction
unmatchedSuppression
unusedStructMember
missingInclude
constArgument
nullPointer
nullPointerRedundantCheck
cstyleCast
constParameter
unknownMacro

*:build*/*

*:starpufft/*
*:min-dgels/*
*:socl/src/CL/*
*:tools/*

// TODO. We should cppcheck the code
*:sc_hypervisor/*
varFuncNullUB:examples/sched_ctx/two_cpu_contexts.c:76
negativeIndex:examples/stencil/stencil-tasks.c
constStatement:examples/stencil/*
shiftTooManyBitsSigned:examples/pi/SobolQRNG/sobol_gold.c:88

unreadVariable:tests/openmp/*
unusedLabel:tests/datawizard/gpu_register.c
unusedLabel:tests/datawizard/gpu_ptr_register.c
redundantAssignment:tests/datawizard/interfaces/test_interfaces.c:757
redundantAssignment:tests/datawizard/mpi_like_async.c:165
redundantAssignment:tests/datawizard/mpi_like_async.c:211
unusedPrivateFunction:tests/main/combined_workers/bfs/timer.h
cstyleCast:tests/main/combined_workers/bfs/bfs.cpp
redundantAssignment:tests/main/driver_api/init_run_deinit.c
redundantAssignment:tests/main/driver_api/run_driver.c
unreadVariable:tests/datawizard/variable_size.c

uselessAssignmentPtrArg:mpi/src/starpu_mpi.c:171
unreadVariable:mpi/src/mpi/starpu_mpi_mpi.c:641
unusedVariable:mpi/src/mpi/starpu_mpi_mpi.c:715
unreadVariable:mpi/src/mpi/starpu_mpi_mpi.c:716
unreadVariable:mpi/src/mpi/starpu_mpi_mpi.c:704
unreadVariable:mpi/src/mpi/starpu_mpi_mpi.c:738
unreadVariable:mpi/src/load_balancer/policy/load_heat_propagation.c:597

signConversion:mpi/examples/matrix_decomposition/mpi_cholesky_codelets.c:195

nullPointer:src/common/utils.c:554
redundantAssignment:src/common/utils.c:547
nullPointerRedundantCheck:src/common/rbtree.c

negativeIndex:include/starpu_bitmap.h:275

AssignmentIntegerToAddress:src/core/jobs.c:148
redundantAssignment:src/core/workers.c
uselessAssignmentPtrArg:src/core/sched_ctx_list.c:144
wrongPrintfScanfArgNum:src/core/simgrid.c:1296
unreadVariable:src/core/task.c:657
unusedVariable:src/core/task.c:658
uninitvar:src/core/sched_ctx.c:387

invalidPointerCast:src/core/perfmodel/perfmodel_nan.c:74
unreadVariable:src/core/perfmodel/energy_model.c:179
unusedLabel:src/core/perfmodel/perfmodel_bus.c:757
unreadVariable:src/core/perfmodel/perfmodel_bus.c:1399
unreadVariable:src/core/perfmodel/perfmodel_bus.c:1739
unreadVariable:src/core/perfmodel/perfmodel_bus.c:1420
unreadVariable:src/core/perfmodel/perfmodel_bus.c:1761
unreadVariable:src/core/perfmodel/perfmodel_bus.c:1435
unreadVariable:src/core/perfmodel/perfmodel_bus.c:1775
unreadVariable:src/core/perfmodel/perfmodel_bus.c:1458
unreadVariable:src/core/perfmodel/perfmodel_bus.c:1799
unsignedPositive:src/core/perfmodel/perfmodel_bus.c:1390
unsignedPositive:src/core/perfmodel/perfmodel_bus.c:1730

unreadVariable:src/core/dependencies/tags.c:120

nullPointerRedundantCheck:src/datawizard/data_request.c:228
nullPointerRedundantCheck:src/datawizard/data_request.c:230
nullPointerRedundantCheck:src/datawizard/copy_driver.c:682
unreadVariable:src/datawizard/interfaces/*

unreadVariable:src/drivers/driver_common/driver_common.c:493

redundantAssignment:src/drivers/hip/driver_hip.c:1188
unreadVariable:src/drivers/hip/driver_hip.c:346
unreadVariable:src/drivers/hip/driver_hip.c:343
unreadVariable:src/drivers/hip/driver_hip.c:1147
unreadVariable:src/drivers/hip/driver_hip.c:1095

unreadVariable:src/drivers/opencl/driver_opencl.c:767
redundantAssignment:src/drivers/opencl/driver_opencl.c:831
clarifyCondition:src/drivers/opencl/driver_opencl.c:945
unreadVariable:src/drivers/opencl/driver_opencl.c:1489
unreadVariable:src/drivers/opencl/driver_opencl.c:1406
redundantAssignment:src/drivers/opencl/driver_opencl.c:1534

clarifyCondition:src/drivers/cuda/driver_cuda.c:498
unreadVariable:src/drivers/cuda/driver_cuda.c:2151
unreadVariable:src/drivers/cuda/driver_cuda.c:2041
unreadVariable:src/drivers/cuda/driver_cuda.c:1696
unreadVariable:src/drivers/cuda/driver_cuda0.c:249
redundantAssignment:src/drivers/cuda/driver_cuda1.c:1236
unreadVariable:src/drivers/cuda/driver_cuda1.c:357
unreadVariable:src/drivers/cuda/driver_cuda1.c:1195
unreadVariable:src/drivers/cuda/driver_cuda1.c:1143

nullPointerRedundantCheck:src/sched_policies/fifo_queues.c:507
nullPointerRedundantCheck:src/sched_policies/deque_modeling_policy_data_aware.c:207
redundantAssignment:src/sched_policies/component_eager.c:109
varFuncNullUB:src/sched_policies/modular_heteroprio_heft.c:37
nullPointerRedundantCheck:src/sched_policies/prio_deque.c:176
negativeIndex:src/sched_policies/parallel_heft.c:478

sizeofDereferencedVoidPointer:src/util/fstarpu.c
duplicateExpression:src/util/starpu_task_insert.c:52

pointerSize:socl/src/cl_getcontextinfo.c:33
unreadVariable:socl/src/gc.c:193
// the following warnings are weird and not understandable, let's ignore them
ignoredReturnValue:socl/src/cl_createkernel.c:170
leakReturnValNotUsed:socl/src/cl_createkernel.c:170
ignoredReturnValue:socl/src/cl_createprogramwithsource.c:136
leakReturnValNotUsed:socl/src/cl_createprogramwithsource.c:136

varFuncNullUB:bubble/tests/basic/gemm_dag.c:213
varFuncNullUB:bubble/tests/basic/gemm_dag.c:208
