SHA256
1
0
forked from pool/cppcheck

Compare commits

...

146 Commits

Author SHA256 Message Date
Ana Guerrero
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
Michael Vetter
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
Ana Guerrero
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
Michael Vetter
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
Dominique Leuenberger
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
Martin Pluskal
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
Dominique Leuenberger
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
Ana Guerrero
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
Martin Pluskal
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
Ana Guerrero
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
Ana Guerrero
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
Martin Pluskal
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
Ana Guerrero
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
Ana Guerrero
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
Ana Guerrero
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
Ana Guerrero
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
Ana Guerrero
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
Martin Pluskal
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
Ana Guerrero
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
Ana Guerrero
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
Martin Pluskal
382bc55288 OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=118 2023-11-12 11:27:14 +00:00
Martin Pluskal
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
Ana Guerrero
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
Dominique Leuenberger
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
Dominique Leuenberger
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
Dominique Leuenberger
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
Martin Pluskal
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
Dominique Leuenberger
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
a198a5ba61 - update to 2.10.2:
* GUI: Set proper title for compliance report dialog
  * GUI: Generate compliance report
  * Tokenizer: tweaked simplification of function pointers

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=105
2023-02-27 21:49:18 +00:00
Dominique Leuenberger
94b6d607a0 Accepting request 1062417 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/1062417
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=29
2023-02-01 15:39:50 +00:00
Martin Pluskal
b06084542c Accepting request 1062346 from home:pragmalin:branches:devel:tools
- install files from the addons/ and platforms/ directories - boo#1207806
- correct shebang fix for htmlreport/cppcheck-htmlreport

OBS-URL: https://build.opensuse.org/request/show/1062346
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=103
2023-02-01 09:32:41 +00:00
ff0612c200 - update to 2.10.0:
* Many improvements and fixes in checkers.
  * New check: use memset/memcpy instead of loop
  CLI:
  * if the file provided via "--file-list" cannot be opened it
    will now error out
  * add command-line option "--disable=" to individually disable
    checks
  GUI:
  * Detect when installed version is old. There is setting in
    Edit/Preferences to turn this on.
  * Fix path issue with backslashes
  * Cleanup *.ctu-info files after analysis
  Build:
  * the deprecated Makefile option SRCDIR is no longer accepted
  * added CMake option BUILD_CORE_DLL to build lib as
    cppcheck-core.dll with Visual Studio

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=102
2023-01-30 12:09:12 +00:00
Dominique Leuenberger
912c7073c2 Accepting request 1043016 from devel:tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1043016
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=28
2022-12-15 18:25:29 +00:00
8dd2cfec40 - update to 2.9.3:
* various GUI and premium feature handling bugfixes

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=100
2022-12-07 22:59:57 +00:00
Dominique Leuenberger
973f49dd94 Accepting request 1004372 from devel:tools
- update to 2.9:
  * restored check for negative allocation (new[]) and negative VLA sizes from
    cppcheck 1.87 (LCppC backport)
  * replaced hardcoded check for pipe() buffer size by library configuration
    option (LCppC backport)
  * on Windows the callstack is now being written to the output specific via
    "--exception-handling"
  * make it possible to disable the various exception handling parts via the
    CMake options "NO_UNIX_SIGNAL_HANDLING", "NO_UNIX_BACKTRACE_SUPPORT" and
    "NO_WINDOWS_SEH"
  * detect more redundant calls of std::string::c_str(), std::string::substr(),
    and unnecessary copies of containers
  * Add a match function to addon similiar to Token::Match used internally by
    cppcheck:
  * | for either-or tokens(ie struct|class to match either struct or class)
  * !! to negate a token
  * It supports the %any%, %assign%, %comp%, %name%, %op%, %or%, %oror%, and %var% keywords
  * It supports (*), {*}, [*], and <*> to match links
  * @ can be added to bind the token to a name
  * ** can be used to match until a token
  * Add math functions which can be used in library function definition. This
    enables evaluation of more math functions in ValueFlow
  * Further improve lifetime analysis with this pointers
  * Propagate condition values from outer function calls
  * Add debug intrinsics debug_valueflow and debug_valuetype to show more
    detail including source backtraces

OBS-URL: https://build.opensuse.org/request/show/1004372
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=27
2022-09-17 18:10:54 +00:00
ecac19f21c - update to 2.9:
* restored check for negative allocation (new[]) and negative VLA sizes from
    cppcheck 1.87 (LCppC backport)
  * replaced hardcoded check for pipe() buffer size by library configuration
    option (LCppC backport)
  * on Windows the callstack is now being written to the output specific via
    "--exception-handling"
  * make it possible to disable the various exception handling parts via the
    CMake options "NO_UNIX_SIGNAL_HANDLING", "NO_UNIX_BACKTRACE_SUPPORT" and
    "NO_WINDOWS_SEH"
  * detect more redundant calls of std::string::c_str(), std::string::substr(),
    and unnecessary copies of containers
  * Add a match function to addon similiar to Token::Match used internally by
    cppcheck:
  * | for either-or tokens(ie struct|class to match either struct or class)
  * !! to negate a token
  * It supports the %any%, %assign%, %comp%, %name%, %op%, %or%, %oror%, and %var% keywords
  * It supports (*), {*}, [*], and <*> to match links
  * @ can be added to bind the token to a name
  * ** can be used to match until a token
  * Add math functions which can be used in library function definition. This
    enables evaluation of more math functions in ValueFlow
  * Further improve lifetime analysis with this pointers
  * Propagate condition values from outer function calls
  * Add debug intrinsics debug_valueflow and debug_valuetype to show more
    detail including source backtraces

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=98
2022-09-17 16:30:25 +00:00
Richard Brown
22bde184c0 Accepting request 989720 from devel:tools
- update to 2.8.2:
  * do not allocate std::string when column is -1
  * catch internal error during whole program analysis
  * fix whole program analysis

OBS-URL: https://build.opensuse.org/request/show/989720
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=26
2022-07-18 16:34:16 +00:00
5a604c91fd - update to 2.8.2:
* do not allocate std::string when column is -1
  * catch internal error during whole program analysis
  * fix whole program analysis

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=96
2022-07-17 16:16:37 +00:00
Dominique Leuenberger
4ea59e9316 Accepting request 981215 from devel:tools
- update to 2.8:
  * Lifetime analysis can now track lifetime across user-defined constructors
    when they are inline and using member initializer list.
  * SymbolDatabase can now deduce iterator types from how they are specified in
    the library files.
  * ValueFlow can evaluate class member functions that return known values.
  * Improve duplicateValueTenary to not warn when used as an lvalue or when one
    branch has side effects
  * Fix variableScope to not warn when variables are used in lambda functions
  * Fix unassignedVariable warnings when using structured bindings
  * Fix redundantInitialization warning when variable is used in a lambda
  * Fix variableScope warnings when using if/while init-statement
  * Improve lifetime analysis when returning variadic template expressions
  * Detect more statements with constStatement
  * Detect variableScope for more types
  * Improvements to unreadVariable
  * Detect more instances of C style casts
  * Warn if the return value of new is discarded
  * The pre-ValueFlow uninitialized checker now uses a different ID as legacyUninitvar
  * Extended library format to exclude specific function argument values

OBS-URL: https://build.opensuse.org/request/show/981215
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=25
2022-06-08 12:24:55 +00:00
e67c99d77b - update to 2.8:
* Lifetime analysis can now track lifetime across user-defined constructors
    when they are inline and using member initializer list.
  * SymbolDatabase can now deduce iterator types from how they are specified in
    the library files.
  * ValueFlow can evaluate class member functions that return known values.
  * Improve duplicateValueTenary to not warn when used as an lvalue or when one
    branch has side effects
  * Fix variableScope to not warn when variables are used in lambda functions
  * Fix unassignedVariable warnings when using structured bindings
  * Fix redundantInitialization warning when variable is used in a lambda
  * Fix variableScope warnings when using if/while init-statement
  * Improve lifetime analysis when returning variadic template expressions
  * Detect more statements with constStatement
  * Detect variableScope for more types
  * Improvements to unreadVariable
  * Detect more instances of C style casts
  * Warn if the return value of new is discarded
  * The pre-ValueFlow uninitialized checker now uses a different ID as legacyUninitvar
  * Extended library format to exclude specific function argument values

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=94
2022-06-07 21:32:35 +00:00
Dominique Leuenberger
9e058f53d0 Accepting request 971910 from devel:tools
- update to 2.7.5:
  * Import Project: Fix problem with define value with space

OBS-URL: https://build.opensuse.org/request/show/971910
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=24
2022-04-22 19:53:35 +00:00
c4ad8f7556 OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=92 2022-04-21 20:36:47 +00:00
246977aac5 - update to 2.7.5:
* Import Project: Fix problem with define value with space

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=91
2022-04-19 13:40:17 +00:00
Dominique Leuenberger
e3d7ffb43f Accepting request 965031 from devel:tools
- update to 2.7.4:
  * Fixes "undefined reference to `tinyxml2::"
  * Replace tinyxml2_LIBRARY with tinyxml2_LIBRARIES

OBS-URL: https://build.opensuse.org/request/show/965031
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=23
2022-03-26 21:31:28 +00:00
fab3fc6168 - update to 2.7.4:
* Fixes "undefined reference to `tinyxml2::"
  * Replace tinyxml2_LIBRARY with tinyxml2_LIBRARIES

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=89
2022-03-26 14:12:53 +00:00
Dominique Leuenberger
9a22f74629 Accepting request 963325 from devel:tools
- update to 2.7.1:
  * Add support for container views. The view attribute has been added to the
    <container> library tag to specify the class is a view. The lifetime
    analysis has been updated to use this new attribute to find dangling
    lifetime containers.
  * Various checker improvements.
  * Fixed false positives.
- drop fix-i586.patch (obsolete)

OBS-URL: https://build.opensuse.org/request/show/963325
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=22
2022-03-21 19:11:00 +00:00
8c55f44465 OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=87 2022-03-20 19:39:22 +00:00
d64e1eabeb - drop fix-i586.patch (obsolete)
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=86
2022-03-20 19:39:15 +00:00
cfae264b08 - update to 2.7.1:
* Add support for container views. The view attribute has been added to the
    <container> library tag to specify the class is a view. The lifetime
    analysis has been updated to use this new attribute to find dangling
    lifetime containers.
  * Various checker improvements.
  * Fixed false positives.

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=85
2022-03-20 19:31:39 +00:00
Dominique Leuenberger
3eb78ed718 Accepting request 941431 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/941431
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=21
2021-12-18 20:52:48 +00:00
Stephan Kulow
14834fcc7e Accepting request 941382 from home:dirkmueller:Factory
- update to 2.6.3:
  * Fix execution of executable addons from GUI

OBS-URL: https://build.opensuse.org/request/show/941382
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=84
2021-12-18 19:15:45 +00:00
Dominique Leuenberger
391ce6ee0a Accepting request 939552 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/939552
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=20
2021-12-11 23:57:43 +00:00
057e8566ee Accepting request 935858 from home:dirkmueller:Factory
- update to 2.6.2:
  * New checks in core cppcheck:
    * missing return in function
    * writing overlapping data, detect undefined behavior
    * compared value is out of possible type range
    * Copy elision optimization can't be applied for return std::move(local)
    * file can not be opened for read and write access at the same
      time on different streams
  * Various improvements
- drop 0001-Fix-compilation-with-recent-glibc-where-SIGSTKSZ-is-.patch (upstream)

OBS-URL: https://build.opensuse.org/request/show/935858
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=83
2021-12-11 09:15:31 +00:00
Dominique Leuenberger
a722b4af98 Accepting request 920630 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/920630
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=19
2021-09-21 19:13:20 +00:00
5ed5e2d8b5 Accepting request 920272 from home:cgiboudeaux:branches:devel:tools
- Add glibc 2.34 build fix:
  * 0001-Fix-compilation-with-recent-glibc-where-SIGSTKSZ-is-.patch

OBS-URL: https://build.opensuse.org/request/show/920272
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=82
2021-09-21 09:53:11 +00:00
Dominique Leuenberger
2ecaeb7a0f Accepting request 906819 from devel:tools
- update to 2.5:
  * checked that all features in c++11, c++14, c++17 are supported
  * c++20 support is improved but not complete yet
  * improved library files, better knowledge about APIs
  * improved checks to detect more bugs
  * fixed checks to avoid unwanted warnings
  * suspicious container/iterator assignment in condition
  * rethrow without current handled exception
- drop 0002-Another-gcc11-fix-3179.patch, 0001-Fix-gcc11-build-errors.patch: upstream

OBS-URL: https://build.opensuse.org/request/show/906819
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=18
2021-07-17 21:36:48 +00:00
3fa349d3a3 - update to 2.5:
* checked that all features in c++11, c++14, c++17 are supported
  * c++20 support is improved but not complete yet
  * improved library files, better knowledge about APIs
  * improved checks to detect more bugs
  * fixed checks to avoid unwanted warnings
  * suspicious container/iterator assignment in condition
  * rethrow without current handled exception
- drop 0002-Another-gcc11-fix-3179.patch, 0001-Fix-gcc11-build-errors.patch: upstream

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=81
2021-07-17 13:11:33 +00:00
Dominique Leuenberger
e21f14ad8c Accepting request 896668 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/896668
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=17
2021-06-02 20:11:37 +00:00
Martin Pluskal
6b3188e605 Accepting request 896626 from home:cgiboudeaux:branches:devel:tools
- Add GCC compatibility fixes:
  * 0001-Fix-gcc11-build-errors.patch
  * 0002-Another-gcc11-fix-3179.patch

OBS-URL: https://build.opensuse.org/request/show/896626
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=79
2021-06-01 11:43:11 +00:00
Dominique Leuenberger
4ddcf3943a Accepting request 892005 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/892005
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=16
2021-05-11 21:04:05 +00:00
Martin Pluskal
a89fcb6bcc Accepting request 892004 from home:coolo:branches:openSUSE:Factory
- add fix-i586.patch to fix compilation on i586, where the test
  case tests the wrong IntRange

OBS-URL: https://build.opensuse.org/request/show/892004
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=77
2021-05-10 10:52:49 +00:00
Dominique Leuenberger
a4d9ec0c17 Accepting request 881016 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/881016
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=15
2021-03-24 15:14:26 +00:00
Martin Pluskal
870eab9200 Accepting request 880879 from home:dirkmueller:Factory
- update to 2.4.1:
  * fix for windows installer, no other changes

OBS-URL: https://build.opensuse.org/request/show/880879
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=75
2021-03-24 11:08:27 +00:00
Martin Pluskal
8b9f1e8cea Accepting request 880605 from home:dirkmueller:Factory
- update to 2.4:
  * Detect one definition rule violations
  * MISRA improvements
  * ImportProject fixes
  * Various bug hunting improvements
  * Fixes when importing AST from clang

OBS-URL: https://build.opensuse.org/request/show/880605
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=74
2021-03-23 07:20:41 +00:00
Dominique Leuenberger
cf38a9a246 Accepting request 856470 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/856470
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=14
2020-12-17 16:05:09 +00:00
f08159343a Accepting request 855374 from home:milsav92:branches:devel:tools
- Update to version 2.3
  Improved C++ parser:
  * types
  * wrong operands in ast
  * better simplification of templates
  Improved clang import, various fixes.
  Improved value flow analysis
  Fixed false positives
  Improved configuration in library files
  * boost.cfg
  * googletest.cfg
  * qt.cfg
  * windows.cfg
  * wxwidgets.cfg
  Added several Misra rules:
  * 6.1
  * 6.2
  * 7.2
  * 7.4
  * 9.2
  * 10.2
  * 15.4
  Added platforms:
  * elbrus e1c+
  * pic
  * pic8
  * mips
- Update to version 2.2
  New checks:
  * incorrect usage of mutexes and lock guards
  * Dereference end iterator
  * Iterating a known empty container
  * outOfBounds check for iterators to containers
  Removed 'operator=' check that ensures reference to self is returned. That is not about safety.
  Improved parser
  * various ast fixes
  Clang parser
  * The Clang import feature in Cppcheck should be considered to be experimental for now. There are problems.
  Improved bug hunting
  * variable constraints
  * handling of multidimension arrays
  * function calls, execute functions that are in same TU
  * improved handling of containers
  * several improvements for uninitialized variables check
  * improved analysis of for loops
  * added a hash value for warnings that can be used for suppressions
  Improved data flow
  * one more heuristic for ternary operators
  * improved data flow for containers
  CLI:
  * Fixed some addon execution problems when there are spaces etc
  GUI:
  * Fix handling of tags
  * Exclude files
  cppcheck-htmlreport:
  * several result files can be combined into 1 output
  Suppressions:
  * comments can be added at end of suppression in suppressions file

OBS-URL: https://build.opensuse.org/request/show/855374
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=72
2020-12-16 13:21:00 +00:00
Dominique Leuenberger
b606030041 Accepting request 820782 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/820782
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=13
2020-07-15 13:04:21 +00:00
Martin Pluskal
edb6269661 Accepting request 820762 from home:elimat:branches:devel:tools
- Update to version 2.1
  * We have tweaked build scripts.
  * When you use USE_Z3=yes, we will handle new versions of z3 better. If you
    have an old z3 library and get compilation problems you will need to add
	a z3_version.h in externals.
  * The cmake scripts was updated.
  * There was a couple of bug fixes.
  New check:
  * for "expression % 1" the result is always 0.
- Run spec-cleaner
  * Remove rpm groups
- Enable Z3 build flag

OBS-URL: https://build.opensuse.org/request/show/820762
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=70
2020-07-14 05:24:49 +00:00
Dominique Leuenberger
767155376e Accepting request 784399 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/784399
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=12
2020-03-12 22:10:26 +00:00
Martin Pluskal
bc8f4ec7a6 Accepting request 784381 from home:vladisav:branches:devel:tools
- Since cppcheck version 1.89 CFGDIR is replaced by FILESDIR and cfg files are no longer kept in FILESDIR but in subfolder FILESDIR/cfg.

OBS-URL: https://build.opensuse.org/request/show/784381
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=68
2020-03-12 19:38:37 +00:00
Dominique Leuenberger
5b89c0ce9e Accepting request 781477 from devel:tools
- Use cmake macros

- Update to version 1.90
  * alias to vector element invalid after vector is changed
  * improved value flow analysis for struct members
  * improved value flow analysis for pointer alias
  * CERT: Added ENV33-C: Do not call system()
  * MISRA: added rules 2.7, 3.2, 4.2, 14.2, 21.1, 21.12
- update to version 1.89
  * The default warning message format was changed. The new format
    is similar to GCC. If you want to get warnings in the old 
    format, add --template=cppcheck1 to the command line.
  * improved value flow analysis for pointer aliases
  * improved checking for uninitialized variables/structs
  * better checking of smart pointers
  * better checking of global variables
  * Added Cppcheck annotations cppcheck_low(VALUE) and 
    cppcheck_high(VALUE)
  * shadow variables; warn when argument is shadowed
  * warn if local reference variable can be const
  * Added API01-C: Avoid laying out strings in memory directly 
    before sensitive data
  * Added MSC24-C: Do not use deprecated or obsolescent functions
  * Added STR11-C: Do not specify the bound of a character array
    initialized with a string literal
  * MISRA: added rules 17.2, 18.4, 18.7

OBS-URL: https://build.opensuse.org/request/show/781477
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=11
2020-03-05 22:20:50 +00:00
Martin Pluskal
bb5690291a OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=66 2020-03-04 12:27:05 +00:00
Martin Pluskal
9735479051 - Use cmake macros
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=65
2020-03-04 12:18:09 +00:00
Martin Pluskal
ed7a648d6e Accepting request 781469 from home:dalgaaf:branches:devel:tools
- Update to version 1.90
  * alias to vector element invalid after vector is changed
  * improved value flow analysis for struct members
  * improved value flow analysis for pointer alias
  * CERT: Added ENV33-C: Do not call system()
  * MISRA: added rules 2.7, 3.2, 4.2, 14.2, 21.1, 21.12
- update to version 1.89
  * The default warning message format was changed. The new format
    is similar to GCC. If you want to get warnings in the old 
    format, add --template=cppcheck1 to the command line.
  * improved value flow analysis for pointer aliases
  * improved checking for uninitialized variables/structs
  * better checking of smart pointers
  * better checking of global variables
  * Added Cppcheck annotations cppcheck_low(VALUE) and 
    cppcheck_high(VALUE)
  * shadow variables; warn when argument is shadowed
  * warn if local reference variable can be const
  * Added API01-C: Avoid laying out strings in memory directly 
    before sensitive data
  * Added MSC24-C: Do not use deprecated or obsolescent functions
  * Added STR11-C: Do not specify the bound of a character array
    initialized with a string literal
  * MISRA: added rules 17.2, 18.4, 18.7

OBS-URL: https://build.opensuse.org/request/show/781469
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=64
2020-03-04 12:06:10 +00:00
Dominique Leuenberger
5797045854 Accepting request 712895 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/712895
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=10
2019-07-11 11:13:46 +00:00
Martin Pluskal
11c42300b6 Accepting request 712743 from home:marxin:branches:devel:tools
- Update to version 1.88:
  * Comparing pointers that point to different objects
  * Address of local variable 'x' is accessed at non-zero index
  * STL usage: unnecessary search before insertion
  * Duplicate expression for condition and assignment: if (x==3) x=3; 
  * Better handling of C++14 and C++17
  * New command line option --addon used to run addons directly from Cppcheck.
  * Some advanced options are only available in GUI:
- Update to version 1.87:
  * --project can now import Cppcheck GUI projects.
  * Condition is always true when array address is compared with 0.
  * function argument expression calculation has known result (#8830)
  * Better lifetime checking (using pointer/reference that points at deleted object)
  * Improved whole program analysis
  * Better handling of language extension var@address.
  * Many improvements in parser to handle templates, type aliases, etc better
  * New addon for checking naming conventions. Naming conventions are configured in json file.

OBS-URL: https://build.opensuse.org/request/show/712743
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=62
2019-07-01 16:28:24 +00:00
Dominique Leuenberger
97ecad2421 Accepting request 662754 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/662754
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=9
2019-01-05 13:42:34 +00:00
Martin Pluskal
8794695220 Accepting request 662716 from home:nafsub:branches:devel:tools
- Workaround for CMake lacking a CFGDIR variable.
  * Patch was submitted (https://github.com/danmar/cppcheck/pull/1554) 
    and accepted so this change should be reverted and replaced with a CMake compile definition 
    -DCFGDIR=\"%{_datadir}/%{name}\" once a new upstream version is released.

OBS-URL: https://build.opensuse.org/request/show/662716
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=60
2019-01-04 08:13:34 +00:00
Dominique Leuenberger
dffa1d1ef8 Accepting request 661573 from devel:tools
- Small packaging enhancements

- Use Python 3 instad of Python 2
- Switch to CMake as the used build system, otherwise Python 3
  could not be detected by plain make

OBS-URL: https://build.opensuse.org/request/show/661573
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=8
2018-12-28 11:35:42 +00:00
Martin Pluskal
c4a11996ef - Small packaging enhancements
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=58
2018-12-27 10:04:40 +00:00
Martin Pluskal
5e143cf72d Accepting request 661440 from home:mathletic:branches:devel:tools
- Use Python 3 instad of Python 2
- Switch to CMake as the used build system, otherwise Python 3 could not be detected by plain make

OBS-URL: https://build.opensuse.org/request/show/661440
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=57
2018-12-27 08:40:19 +00:00
Dominique Leuenberger
473c95dcf3 Accepting request 660219 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/660219
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=7
2018-12-21 07:22:18 +00:00
Martin Pluskal
360f7317bb Accepting request 660144 from home:mathletic:branches:devel:tools
- Update to 1.86

OBS-URL: https://build.opensuse.org/request/show/660144
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=55
2018-12-20 08:29:12 +00:00
Dominique Leuenberger
8538c461b2 Accepting request 642840 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/642840
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=6
2018-10-18 13:39:58 +00:00
Martin Pluskal
e70987f28d Accepting request 642826 from home:jubalh:branches:devel:tools
- Update to 1.85:
  Changes from 1.83:
  Command line:
  - fixes in parser
  - Improved loading of platform files.
  GUI:
  - few minor improvements in user interface
  - Code preview
  - Added MISRA addon integration
  - Platform can be selected in project settings
  - Fixed issue when loading xml results file
  Addons:
  - We are now officially releasing our MISRA addon. So far it supports MISRA C 2012.
  Changes from 1.85:
  General:
  - We are modernizing the Cppcheck code. Support for MSVC 2010 and GCC 4.4 is dropped.
    You now need a compiler that is at least as good as MSVC 2013 or GCC 4.6.
  Checking improvements:
  - New check: Suggest STL algorithms instead of hard-coded for loops
  - New check: Warn about ineffective algorithms (same iterator passed)
  - New check: Mismatching iterators used together in operators
  - Container (STL/Qt/WxWidgets/etc) access out of bounds
  - Improved the checkers that warns about same/opposite expressions, track variable values better.
  - Variable scope: warn about references also
  Graphical user interface:
  - You can specify undefines in the project file dialog
  - Fixed configuration of suppressions
  - Windows: Fixed issue of wrong/no theme being applied to UI elements
  Misra:
  - support per file excludes from cppcheck

OBS-URL: https://build.opensuse.org/request/show/642826
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=53
2018-10-18 10:38:02 +00:00
Dominique Leuenberger
217bcf0fbb Accepting request 577906 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/577906
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=5
2018-02-19 12:03:29 +00:00
OBS User mrdocs
74717428cf Accepting request 577725 from home:alois:branches:devel:tools
- Update to version 1.82
  Bug fixes:
  * Better handling of namespaces
  * Fixed false positives
  * Fixed parsing of compile databases
  * Fixed parsing of visual studio projects
  Enhancements
  * New check; Detect mistakes when there are multiple strcmp() in
    condition
    Example:
     if (strcmp(password,"A")==0 || strcmp(password,"B")==0 || strcmp(password,"C"))
     There is a missing '==0', and therefore this condition is
     always true except when password is "C".
  * New check; pointer calculation result can't be NULL unless
    there is overflow
   Example:
     someType **list_p = ...;
     if ((list_p + 1) == NULL)
   The result for '(list_p + 1)' can't be NULL unless there is
   overflow (UB).
  * New check; public interface of classes should be safe - detect
    possible division by zero
    Example:
      class Fred {
      public:
      void setValue(int mul, int div) {
        value = mul / div; // <- unsafe
      }
      ...
    This check does not consider how Fred::setValue() is really
    called.
    If you agree that the public interface of classes should
    always be safe; it should be allowed to call all public
    methods with arbitrary arguments, then this checker will be
    useful.
  * Fixed a few false negatives
  * More information in the cfg files
  version 1.81
  CPPCHECK:
  * New warning: Check if condition after an early return is
    overlapping and therefore always false.
  * Improved knowledge about C/C++ standard, windows, posix,
    wxwidgets, gnu
  * Better handling of Visual Studio projects
  GUI:
  * Compile: Qt5 is now needed to build the GUI
  * Compile: New qmake flag HAVE_QCHART
  * Project: You can now run cppcheck-addons
  * Project: We have integrated clang-tidy
  * Results view: Reload last results (if cppcheck build dir is
    used) when GUI is started
  * Results view: Tag the warnings with custom keywords
    (bug/todo/not important/etc..)
  * Results view: Shows when warning first appeared (since date)
  * Results view: Suppress warnings through right-click menu
  * Statistics: Added charts (shown if Qt charts module is enabled
    during build)
  version 1.80
  Checking improvements:
  * Added platform for Atmel AVR 8 bit microcontrollers (avr8)
  * Better 'callstacks' in cppcheck messages
  * Improved gnu.cfg, posix.cfg, wxwidgets.cfg and std.cfg, added
    motif.cfg
  * Various improvements to AST, ValueFlow analysis and template
    parsing
  Command line changes:
  * Deprecated command line argument  *-append has been removed
  * New command line argument  *-plist-output to create .plist
    files
  * New command line argument  *-output-file to print output to
    file directly
  * Check OpenCL files (.cl)
  GUI:
  * Support export of statistics to PDF
  * Several small usability improvements
  * Additionally, lots of false positives and bugs have been fixed
    and several existing checks have been improved.
  version 1.79
  General changes:
  * C++ code in C files is rejected now (use  *-language=c++ to
    enforce checking the code as C++)
  * Write function access type to XML dump
  Checking improvements:
  * Improved configuration extraction in preprocessor
  * Improved accuracy of AST
  * Improved template parsing
  * Improved support for (STL) containers in SymbolDatabase
  * Improved support for C++11's 'auto' type
  * Experimental support for uninitialized variables in ValueFlow
    analysis
  * Added qt.cfg and sfml.cfg, improved several existing .cfg files
  GUI:
  * Use CFGDIR macro
  * Additionally, lots of false positives and bugs have been fixed
    and several existing checks have been improved.
  version 1.78
  General changes:
  * Reduced memory usage by up to 10% by reducing size of token
    list
  New checks:
  * Mismatching argument names between function declaration and
    definition
  * Detect classes which have a copy constructor but no copy
    operator and vice versa
  Checking improvements:
  * Improved matching of overloaded functions
  * Improved ValueType analysis, especially related to allocations
    with "new" and C++11's "auto"
  * Improved support for C++11 brace initialization
  * Improved ValueFlow analysis
  * Improved template parsing
  * Improved detection of memory leaks
  * Improved nullpointer checking when nullptr and NULL are used
  * Detect array out of bounds across compilation units
  * Extended windows.cfg, posix.cfg and std.cfg
  * Additionally, lots of false positives and bugs have been fixed
    and several existing checks have been improved.

OBS-URL: https://build.opensuse.org/request/show/577725
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=51
2018-02-19 03:33:22 +00:00
Dominique Leuenberger
4b1a672aeb Accepting request 481721 from devel:tools
- Update to version 1.77:
- Always build Qt5 GUI

OBS-URL: https://build.opensuse.org/request/show/481721
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=4
2017-03-24 01:22:21 +00:00
Martin Pluskal
6a5a5d2aa5 - Use qmake macros
- Run spec-cleaner
- Update to version 1.77:
  * Added flag --cppcheck-build-dir to allow incremental analysis and inter-file checking
  * Improved --project support for Visual Studio solutions
  * Detect pointer overflow
  * Detect usage of variable after std::move or std::forward
  * Warn about number and char literals in boolean expressions
  * Improved checking for variables modified but not used again
  * Libraries: Added support to specify <returnValue>
  * Improved ValueFlow, especially related to function return values and casts
  * Improved simplification of Null values to allow more accurate checking
  * Several improvements to windows.cfg, posix.cfg, gnu.cfg and std.cfg
  * Reimplemented check for using iterators of mismatching containers... read more

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=49
2017-03-21 10:29:05 +00:00
Martin Pluskal
3e3c05b5f0 Accepting request 481690 from home:favogt:branches:devel:tools
- Update to 1.77
  * Changelog too long to add here, so please see:
    https://sourceforge.net/p/cppcheck/news/
- Always build Qt5 GUI

OBS-URL: https://build.opensuse.org/request/show/481690
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=48
2017-03-21 10:18:08 +00:00
Dominique Leuenberger
c62faae9b2 Accepting request 360676 from devel:tools
1

OBS-URL: https://build.opensuse.org/request/show/360676
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=3
2016-02-23 15:57:24 +00:00
Martin Pluskal
92c5b39b10 Accepting request 360647 from home:elvigia:branches:devel:tools
- Build the GUI against QT5 in newish products.

OBS-URL: https://build.opensuse.org/request/show/360647
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=46
2016-02-21 07:20:36 +00:00
Dominique Leuenberger
cb0a7827ce Accepting request 331102 from devel:tools
1

OBS-URL: https://build.opensuse.org/request/show/331102
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=2
2015-09-17 07:21:34 +00:00
Stephan Kulow
e57f872d4f Accepting request 331047 from home:etamPL:branches:devel:tools
update to 1.70

OBS-URL: https://build.opensuse.org/request/show/331047
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=44
2015-09-15 18:52:26 +00:00
Dominique Leuenberger
1ec9bd9cb6 Accepting request 320724 from devel:tools
New package, usefull tool

OBS-URL: https://build.opensuse.org/request/show/320724
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=1
2015-08-06 22:23:59 +00:00
Martin Pluskal
be0c27cab4 Accepting request 307351 from home:etamPL:branches:devel:tools
update to 1.69

OBS-URL: https://build.opensuse.org/request/show/307351
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=42
2015-05-15 16:40:26 +00:00
Martin Pluskal
eb9c945381 Accepting request 280298 from home:dalgaaf:branches:devel:tools
Update to new 1.68 release

OBS-URL: https://build.opensuse.org/request/show/280298
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=41
2015-01-08 13:50:23 +00:00
Stephan Kulow
a51577503b Accepting request 257962 from home:dalgaaf:branches:devel:tools
Update cppcheck to 1.67

OBS-URL: https://build.opensuse.org/request/show/257962
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=40
2014-10-22 14:41:14 +00:00
0a4c14d371 Accepting request 247200 from home:dalgaaf:branches:devel:tools
OBS-URL: https://build.opensuse.org/request/show/247200
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=39
2014-09-02 11:38:52 +00:00
39df2bc06a Accepting request 233519 from home:dalgaaf:branches:devel:tools
Update of cppcheck to 1.65

OBS-URL: https://build.opensuse.org/request/show/233519
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=38
2014-05-12 08:39:54 +00:00
OBS User mrdocs
b5458e6360 Accepting request 232364 from home:dalgaaf:branches:devel:tools
Updated cppcheck to latest released version 1.64

OBS-URL: https://build.opensuse.org/request/show/232364
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=37
2014-05-02 00:49:40 +00:00
96118b48aa Accepting request 213673 from home:etamPL:branches:devel:tools
Bundle config files

OBS-URL: https://build.opensuse.org/request/show/213673
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=36
2014-01-13 13:01:10 +00:00
OBS User mrdocs
2e21d8a8ab Accepting request 213540 from home:etamPL:branches:devel:tools
Update to 1.63

OBS-URL: https://build.opensuse.org/request/show/213540
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=35
2014-01-12 01:24:21 +00:00
fe9bdee298 Accepting request 164061 from home:dalgaaf:branches:devel:tools
- update to 1.59:
 * Commandline/Settings changes:
   - New option to enable warnings but not style messages: 
     --enable=warning
   - Cppcheck used to skip includes where the header filename 
     is enclosed in <>. You can now include these headers also by 
     using -I. 
 * New checks:
   - New POSIX checks: pipe() buffer size, redundant calls of 
     set/get user id, too big value passed to usleep(), buffer 
     overflow when using write()
   - Storing getc() return value in char variable and comparing 
     to EOF.
   - Detect redundant bitand operations
   - Find suspicious equality comparisons like: if(a == 0) a == 1;
   - Warn about using malloc() for classes containing virtual
     methods, std::-objects or constructors
   - Portability check that warns when using NULL as argument to 
     variadic function. It has undefined behaviour on some 
     implementations.
 * Improvements:
   - Improved lookup for functions and types
   - Switched to TinyXml2 as XML library
   - Improved checking for uninitialized struct members, 
     variable scopes that can be reduced and unused functions
 * GUI:
   - Remember last path in open file dialog
   - Added command line parameter to open a results file
   - Bug in statistic calculation fixed

OBS-URL: https://build.opensuse.org/request/show/164061
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=34
2013-04-15 12:24:26 +00:00
OBS User mrdocs
19cabe01cb Accepting request 154873 from home:HighwayStar:branches:devel:tools
update to 1.58

OBS-URL: https://build.opensuse.org/request/show/154873
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=33
2013-02-08 19:12:36 +00:00
OBS User mrdocs
a52d7acbcb fix BuildRequires
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=32
2012-12-26 04:18:24 +00:00
OBS User mrdocs
c0ca073ce4 bump version to 1.57
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=31
2012-12-26 04:16:02 +00:00
29e006b4ad Accepting request 108747 from home:jirislaby:branches:devel:tools
update to 1.53

OBS-URL: https://build.opensuse.org/request/show/108747
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=30
2012-03-12 11:05:01 +00:00
OBS User mrdocs
d7f6af8332 Accepting request 79965 from home:gladiac:branches:devel:tools
update to version 1.50

OBS-URL: https://build.opensuse.org/request/show/79965
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=29
2011-08-29 09:16:57 +00:00
OBS User mrdocs
5d96c86b69 OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=28 2011-08-08 04:56:45 +00:00
OBS User mrdocs
c823b8d83a OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=27 2011-08-08 04:53:59 +00:00
OBS User mrdocs
b02259cf32 OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=26 2011-08-08 04:45:14 +00:00
OBS User mrdocs
f4d5b94ebd OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=25 2011-08-08 04:02:20 +00:00
OBS User mrdocs
b8f75f5e4f check in 1.49
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=24
2011-08-08 03:56:13 +00:00
OBS User mrdocs
67c3db3c0c OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=23 2011-08-08 03:50:38 +00:00
OBS User mrdocs
5b0bc4ef49 OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=22 2011-08-08 03:50:19 +00:00
OBS User mrdocs
319bd47566 OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=21 2011-08-08 03:48:12 +00:00
OBS User mrdocs
42be6c1699 Accepting request 66710 from home:gladiac:branches:devel:tools
reviewed ok Thanks

OBS-URL: https://build.opensuse.org/request/show/66710
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=20
2011-04-11 19:41:15 +00:00
OBS User mrdocs
ac7f38faf9 Accepting request 57255 from home:gladiac:branches:devel:tools
reviewed ok Thanks

OBS-URL: https://build.opensuse.org/request/show/57255
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=19
2011-01-06 16:48:30 +00:00
OBS User mrdocs
ccc4524a23 OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=18 2010-12-29 09:33:14 +00:00
OBS User mrdocs
efbce96478 OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=17 2010-12-29 09:33:04 +00:00
OBS User mrdocs
801156cb20 OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=16 2010-12-29 09:32:03 +00:00
OBS User mrdocs
782e0779da Accepting request 49701 from home:etamPL:branches:devel:tools
looks good thanks for the update

OBS-URL: https://build.opensuse.org/request/show/49701
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=15
2010-10-04 05:52:21 +00:00
OBS User mrdocs
a0b8b92f97 OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=14 2010-08-22 21:42:57 +00:00
OBS User mrdocs
387492f045 OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=13 2010-08-22 21:16:25 +00:00
OBS User mrdocs
7a7b5d6d1d OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=12 2010-08-22 17:04:19 +00:00
OBS User mrdocs
0e718e4e2a OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=11 2010-08-22 17:03:01 +00:00
OBS User mrdocs
6a3fd02f8f OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=10 2010-08-22 17:02:21 +00:00
Stephan Kleine
b9bd843e77 - Updated to 1.43
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=9
2010-06-01 21:32:29 +00:00
Stephan Kleine
59741efbf8 Updated to 1.38
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=8
2009-10-26 19:09:57 +00:00
Stephan Kleine
9d4e41030b Updated to 1.37
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=7
2009-09-30 19:33:39 +00:00
Stephan Kleine
bccf093322 Updated to 1.32
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=6
2009-05-16 01:40:01 +00:00
Stephan Kleine
6aae9c8b24 Updated to 1.31
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=5
2009-04-15 09:02:34 +00:00
Stephan Kleine
9c767da857 Updated to 1.30
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=4
2009-03-13 15:00:36 +00:00
Petr Uzel
f80a3a5e1a Copy from home:bitshuffler/cppcheck via accept of submit request 6553
Request was accepted with message:

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=1
2009-02-20 16:30:26 +00:00
5 changed files with 39 additions and 7 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9c3acea5f489336bd83a8ea33917a9a04a80c56d874bf270287e7de27acf2d00
size 3723248

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:98bcc40ac8062635b492fb096d7815376a176ae26749d6c708083f4637f7c0bb
size 3820560

3
cppcheck-2.16.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:521b996cb56b0c30f89e022abcb50aef85d7219cb7a7162fa81fe40fe6394206
size 3846122

View File

@ -1,3 +1,38 @@
-------------------------------------------------------------------
Fri Dec 20 20:45:05 UTC 2024 - Christoph G <foss@grueninger.de>
- update to 2.16.2
* Fix syntax error for function pointer array with @
-------------------------------------------------------------------
Sun Dec 1 21:03:58 UTC 2024 - Christoph G <foss@grueninger.de>
- update to 2.16.1
* SymbolDatabase: does not select l-value method properly
-------------------------------------------------------------------
Tue Oct 29 21:32:46 UTC 2024 - Christoph G <foss@grueninger.de>
- 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.
-------------------------------------------------------------------
Sun Sep 1 06:13:20 UTC 2024 - Christoph G <foss@grueninger.de>

View File

@ -17,7 +17,7 @@
Name: cppcheck
Version: 2.15.0
Version: 2.16.2
Release: 0
Summary: A tool for static C/C++ code analysis
License: GPL-3.0-or-later