157 Commits

Author SHA256 Message Date
8b2ea34550 Accepting request 1296714 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/1296714
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=53
2025-07-31 15:47:04 +00:00
c774de81ce - testcondition.patch: fix expected output in TestCondition::alwaysTrue
and TestCondition::alwaysTrueContainer

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=154
2025-07-31 07:40:54 +00:00
1510136346 Accepting request 1296293 from devel:tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1296293
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=52
2025-07-30 09:45:08 +00:00
39065c0c88 - update to 2.18.0:
* Updated path matching syntax for -i, --file-filter,
    suppressions, GUI excludes, and project file excludes.
  * Old patterns that use a `*` may need to use `**` instead if
    it is intended to match path separators. More details can be
    seen in the manual.
  * Support for building with Qt 5 will be removed in Cppcheck
    2.19.
  * The platform 'unix32-unsigned' has been deprecated and will
    be removed in Cppcheck 2.19. Please use '--platform=unix32
    --funsigned-char' instead.
  * The platform 'unix64-unsigned' has been deprecated and will
    be removed in Cppcheck 2.19. Please use '--platform=unix64
    --funsigned-char' instead.
  * Updated Qt to 6.9.1 (official Windows release only).
  * added CMake target `run-clang-tidy-csa` to run Clang Static
    Analyzer
  * added CMake option `ENABLE_CSA_ALPHA` to enable the Clang
    Static Analyzer alpha checkers
  * Updated TinyXML-2 to v11.0.0
  * The minimum supported Python version has been bumped to 3.7.
  * CMake will now unconditionally use Boost.Containers if
    available. If CMake option `USE_BOOST` is specified it will
    now bail out when it is not found.
  * Fix checking a project that contains several project file
    entries for the same file.
  * Fixed --file-filter matching of looked up files in provided
    paths.
  * Split up cstyleCast checker; dangerous casts produce
    portability/warning reports, safe casts produce style

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=152
2025-07-22 09:50:50 +00:00
562633c396 Accepting request 1286981 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/1286981
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=51
2025-06-20 14:49:53 +00:00
b3f896559d fix Leap 16 build
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=150
2025-06-19 13:18:38 +00:00
22b2d8599a Accepting request 1266394 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/1266394
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=50
2025-04-02 15:17:29 +00:00
5204f11d18 - build without rules support on Tumbleweed to remove pcre
dependency


See https://lists.opensuse.org/archives/list/factory@lists.opensuse.org/thread/BK3SPPFOM3LI6K5PTXPKZMKMIUIPOEXS/

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=148
2025-04-02 07:38:15 +00:00
6482888dd1 Accepting request 1248614 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/1248614
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=49
2025-02-26 16:24:10 +00:00
7c85084760 - update to 2.17.1:
* New checks:
    - staticFunction: detect functions that should have internal
      linkage since they are not used outside of their translation
      unit (C code only).
    - Check null pointer return from memory/resource allocation
      functions (nullPointerOutOfMemory,
      nullPointerArithmeticOutOfMemory, nullPointerOutOfResources,
      ctunullpointerOutOfMemory,
      ctunullpointerOutOfResources).
  * Changed interface:
    - Added `reduced` check level. It can be activated with
      `--check-level=reduced`. You get faster analysis
      but some fewer results. The motivation is to be able to make
      analysis time "acceptable" for direct usage.
    - Added `--report-type` option. Enables printing of guidelines
      and classifications for several coding
      standards in place of the regular error identifiers and
      severities.
  * Other:
    - Removed deperecated support for builds via qmake.
    - Using a handwritten rule texts file for MISRA C addon
      violates license and copyright terms. See the
      manual for instructions how to download a official rule
      texts file from MISRA.
- switch to qt6

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=146
2025-02-26 09:45:42 +00:00
63b03c8ad8 Accepting request 1233575 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/1233575
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=48
2024-12-30 13:25:24 +00:00
e748924daa - update to 2.16.2
* Fix syntax error for function pointer array with @

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=144
2024-12-27 16:17:47 +00:00
6b6170bd04 Accepting request 1227644 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/1227644
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=47
2024-12-02 15:59:08 +00:00
b2927a1e52 - update to 2.16.1
* SymbolDatabase: does not select l-value method properly

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=142
2024-12-02 03:30:31 +00:00
be93476822 Accepting request 1219339 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/1219339
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=46
2024-10-30 16:38:09 +00:00
9be70c6eb6 - update to 2.16.0
Improved checking:
  * constVariable; checking multidimensional arrays
  * constVariablePointer; nested array access
  * deallocuse
  Changed interface:
  * SARIF output. Use --output-format=sarif to activate this.
  * Add option --output-format=. Allowed formats are sarif and
    xml.
  Deprecations:
  * The previously deprecated support for Python 2.7 has been
    removed. Please use Python 3 instead.
  * The maximum value for --max-ctu-depth is currently capped
    at 10. This limitation will be removed in a future release.
  Other:
  * "missingInclude" is no longer implicitly enabled with
    "information" - you need to enable it explicitly now.
  * Fixed checkers report when --addon=misra.py or
    --addon=misra.json is used.

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=140
2024-10-30 08:13:25 +00:00
68c381ca70 Accepting request 1198161 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/1198161
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=45
2024-09-02 11:15:11 +00:00
d53b16012f Accepting request 1198146 from home:mathletic:branches:devel:tools
- update to 2.15.0
  * New check suspiciousFloatingPointCast flags unnecessary floating
    point casts that cause loss of precision
  * Added command-line option --cpp-header-probe (and
    --no-cpp-header-probe) to probe headers and extension-less
    files for Emacs marker
  * Add support for 'CLICOLOR_FORCE'/'NO_COLOR' environment
    variables to force/disable ANSI color output for diagnostics.
  * Add "remark comments" that can be used to generate reports with
    justifications for warnings
  * The whole program analysis is now being executed when
    "--project" is being used.

OBS-URL: https://build.opensuse.org/request/show/1198146
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=138
2024-09-01 13:18:24 +00:00
5dc67ae403 Accepting request 1182708 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/1182708
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=44
2024-06-24 18:54:08 +00:00
c8df056543 Accepting request 1182636 from home:mathletic:branches:devel:tools
- update to 2.14.2
  * Justifications for warnings using comments in the code
  * Fix alignas handling

OBS-URL: https://build.opensuse.org/request/show/1182636
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=136
2024-06-23 05:16:35 +00:00
291e06d6f7 Accepting request 1178147 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/1178147
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=43
2024-06-03 15:43:39 +00:00
a6434ef222 Accepting request 1177047 from home:mathletic:branches:devel:tools
- update to 2.14.1
  * Build: fix USE_MATCHCOMPILER CMake option validation
  * Improve Checking: implement evaluation order checker for c++11 and later

OBS-URL: https://build.opensuse.org/request/show/1177047
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=134
2024-06-02 10:18:43 +00:00
c158ef27b4 Accepting request 1170427 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/1170427
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=42
2024-04-28 19:49:25 +00:00
93a51dc2bd Accepting request 1170347 from home:mathletic:branches:devel:tools
- update to 2.14.0
  * New checks:
    - eraseIteratorOutOfBounds: warns when erase() is called on an
      iterator that is out of bounds
    - returnByReference: warns when a large class member is returned
      by value from a getter function

OBS-URL: https://build.opensuse.org/request/show/1170347
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=132
2024-04-27 06:32:03 +00:00
796ecbc96d Accepting request 1161149 from devel:tools
- update to 2.13.4:
  * Speedup premium misra checking

OBS-URL: https://build.opensuse.org/request/show/1161149
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=41
2024-03-25 20:10:50 +00:00
354bdc8d41 - update to 2.13.4:
* Speedup premium misra checking

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=130
2024-03-24 17:20:28 +00:00
7c8a412018 Accepting request 1144161 from devel:tools
- update to 2.13.3:
  * settings.cpp: Update autosar+cert+misra checkers mappings
  * Fix #12389 (GUI: premiumaddon is not executed properly anymore)

OBS-URL: https://build.opensuse.org/request/show/1144161
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=40
2024-02-05 21:01:45 +00:00
46f504db66 - update to 2.13.3:
* settings.cpp: Update autosar+cert+misra checkers mappings
  * Fix #12389 (GUI: premiumaddon is not executed properly anymore)

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=128
2024-02-05 09:44:15 +00:00
9645394ab4 Accepting request 1141685 from devel:tools
- update to 2.13.2:
  * Fix premium version check
  * Fix 12375

OBS-URL: https://build.opensuse.org/request/show/1141685
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=39
2024-01-26 21:47:47 +00:00
de53c9c74b - update to 2.13.2:
* Fix premium version check
  * Fix 12375

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=126
2024-01-26 09:10:09 +00:00
b0796d8df2 Accepting request 1140512 from devel:tools
- update to 2.13.1:
 * Show premium autosar/misra/cert style issues even if --enable
   is not used
 * Better validation of --premium options
 * unsafe handling of unconditional #error
 * unsafe suppressions of critical errors
 * missing "misra-config" warning, calling unknown function in
   condition
 * If --premium=safety is used then go to "safety mode". Do not
   override this in cppcheck.cfg

OBS-URL: https://build.opensuse.org/request/show/1140512
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=38
2024-01-22 19:38:10 +00:00
aa0456ef17 - update to 2.13.1:
* Show premium autosar/misra/cert style issues even if --enable
   is not used
 * Better validation of --premium options
 * unsafe handling of unconditional #error
 * unsafe suppressions of critical errors
 * missing "misra-config" warning, calling unknown function in
   condition
 * If --premium=safety is used then go to "safety mode". Do not
   override this in cppcheck.cfg

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=124
2024-01-22 09:56:02 +00:00
544f80a356 Accepting request 1134967 from devel:tools
- update to 2.13.0
  * newCheck passedByValueCallback for functions which take a
    parameter by value but are used as callbacks
  * newCheck returnImplicitInt for C functions without return type
  * newCheck iterateByValue for iterating by value in a range-based
    for loop when a const reference could be used
- Drop patches werror-return-type.patch, eb076d87.patch, and
  CVE-2023-39070.patch which are part of upstream or fixed in a
  similar way.

OBS-URL: https://build.opensuse.org/request/show/1134967
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=37
2023-12-25 18:05:52 +00:00
c62715bad4 Accepting request 1134958 from home:mathletic:branches:devel:tools
- update to 2.13.0
  * newCheck passedByValueCallback for functions which take a
    parameter by value but are used as callbacks
  * newCheck returnImplicitInt for C functions without return type
  * newCheck iterateByValue for iterating by value in a range-based
    for loop when a const reference could be used
- Drop patches werror-return-type.patch, eb076d87.patch, and
  CVE-2023-39070.patch which are part of upstream or fixed in a
  similar way.

OBS-URL: https://build.opensuse.org/request/show/1134958
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=122
2023-12-24 08:50:26 +00:00
2b0f219197 Accepting request 1134347 from devel:tools
- add CVE-2023-39070.patch (CVE-2023-39070, bsc#1215233)

OBS-URL: https://build.opensuse.org/request/show/1134347
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=36
2023-12-21 22:38:44 +00:00
f2ba187ef3 - add CVE-2023-39070.patch (CVE-2023-39070, bsc#1215233)
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=120
2023-12-20 23:14:38 +00:00
8e1bf71104 Accepting request 1125244 from devel:tools
- Replace disable-some-tests-about-char-signedness.patch with
  upstream patch to fix tests on non-x86_64 (such as aarch64):
  * eb076d87.patch

OBS-URL: https://build.opensuse.org/request/show/1125244
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=35
2023-11-13 21:21:10 +00:00
382bc55288 OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=118 2023-11-12 11:27:14 +00:00
465c4a0aa7 Accepting request 1124428 from home:Guillaume_G:branches:devel:tools
- Replace disable-some-tests-about-char-signedness.patch with
  upstream patch to fix tests on non-x86_64 (such as aarch64):
  * eb076d87.patch

OBS-URL: https://build.opensuse.org/request/show/1124428
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=117
2023-11-10 08:57:12 +00:00
bcc321f05d Accepting request 1114263 from devel:tools
- update to 2.12.1:
  * Support importing projects with project-name

- update to 2.12.0:
  * uselessOverride finds overriding functions that either
    duplicate code from or delegate back to the base class
    implementation
  * knownPointerToBool finds pointer to bool conversions that are
    always true or false
  * truncLongCastAssignment and truncLongCastReturn check
    additional types, including float/double/long double
  * duplInheritedMember also reports duplicated member functions
  * constParameter*/constVariable* checks find more instances of
    pointers/references that can be const, e.g. when calling
    library functions
  * Write how many checkers was activated after a run
  * Added --checkers-report that can be used to generate a report
    in a file that shows what checkers was activated and disabled
  * The qmake build system has been deprecated and will be
    removed in a future version.
  * Command-line option '--template
- update to 2.11:
  * pop_back on empty container is UB
  * Improve useStlAlgorithm check to handle many more conditions
    in the loop for any_of, all_of and none_of algorithms
  * ValueFlow can evaluate the return value of functions even
    when conditionals are used
  * ValueFlow will now forward the container sizes being returned
    from a function
  * ValueFlow can infer possible values from possible symbolic

OBS-URL: https://build.opensuse.org/request/show/1114263
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=34
2023-10-02 18:04:59 +00:00
5a04f7d88d - add werror-return-type.patch to fix false warnings where
gcc can not properly detect the "noreturn" nature of the function

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=115
2023-09-29 07:29:11 +00:00
8c90fe76c9 - update to 2.12.1:
* Support importing projects with project-name

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=114
2023-09-19 14:21:34 +00:00
4ff6c22bfc - update to 2.12.0:
* uselessOverride finds overriding functions that either
    duplicate code from or delegate back to the base class
    implementation
  * knownPointerToBool finds pointer to bool conversions that are
    always true or false
  * truncLongCastAssignment and truncLongCastReturn check
    additional types, including float/double/long double
  * duplInheritedMember also reports duplicated member functions
  * constParameter*/constVariable* checks find more instances of
    pointers/references that can be const, e.g. when calling
    library functions
  * Write how many checkers was activated after a run
  * Added --checkers-report that can be used to generate a report
    in a file that shows what checkers was activated and disabled
  * The qmake build system has been deprecated and will be
    removed in a future version.
  * Command-line option '--template
- update to 2.11:
  * pop_back on empty container is UB
  * Improve useStlAlgorithm check to handle many more conditions
    in the loop for any_of, all_of and none_of algorithms
  * ValueFlow can evaluate the return value of functions even
    when conditionals are used
  * ValueFlow will now forward the container sizes being returned
    from a function
  * ValueFlow can infer possible values from possible symbolic
    values
  * Improve valueflow after pushing to container
  * The new option --check-level= has been added that controls

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=113
2023-09-15 07:59:45 +00:00
63de44241e Accepting request 1090242 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/1090242
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=33
2023-06-01 15:20:44 +00:00
b4b55e5e82 Accepting request 1089803 from home:manfred999
Test suite quirks. Patch could be optionally only be added for
the affected archs (arm, ppc, s390), but I think it is not worth it,
see also upstream bug report mentioned in the patch.
Running the test suite with "-j1" is no problem as it takes only a
few seconds.

OBS-URL: https://build.opensuse.org/request/show/1089803
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=111
2023-06-01 10:02:25 +00:00
6402428aef Accepting request 1075209 from devel:tools
- switch on Tumbleweed temporarily to gcc 12 to avoid
  "allocator_traits<A>::rebind_alloc<A::value_type> must be A"
  (as mentioned on https://gcc.gnu.org/gcc-13/porting_to.html)

OBS-URL: https://build.opensuse.org/request/show/1075209
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=32
2023-03-29 21:28:18 +00:00
331c3738d4 - switch on Tumbleweed temporarily to gcc 12 to avoid
"allocator_traits<A>::rebind_alloc<A::value_type> must be A"
  (as mentioned on https://gcc.gnu.org/gcc-13/porting_to.html)

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=109
2023-03-29 12:13:55 +00:00
941b4075bb Accepting request 1072201 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/1072201
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=31
2023-03-16 21:57:29 +00:00
da654849b3 Accepting request 1072190 from home:dirkmueller:Factory
- update to 2.10.3:
  * SymbolDatabase: Fix handling of function pointer arguments

OBS-URL: https://build.opensuse.org/request/show/1072190
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=107
2023-03-15 21:53:56 +00:00
f170c27497 Accepting request 1069760 from devel:tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1069760
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=30
2023-03-07 15:50:19 +00:00