83 Commits

Author SHA256 Message Date
bbf8fc971b - update to 2.18.3:
* pathmatch.cpp: fixed reference to invalid container entry
  * Fix #14067 (cmdlineparser: tweaks to --premium)
  * Fix #14064 Files are reanalyzed with --cppcheck-build-dir
  * Fix #14095 (TemplateSimplifier: store location of template argument
  * Fix #14107 (GUI: add menu option to show EULA for cppcheck premium)

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=156
2025-09-11 20:18:20 +00:00
e13a83912b Accepting request 1296604 from home:Andreas_Schwab:Factory
- testcondition.patch: fix expected output in TestCondition::alwaysTrue
  and TestCondition::alwaysTrueContainer

OBS-URL: https://build.opensuse.org/request/show/1296604
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=154
2025-07-31 07:40:54 +00:00
89e98485f7 - 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
2abf2fb2b7 Accepting request 1286967 from home:mlin7442:rebuild_fails_160
fix Leap 16 build

OBS-URL: https://build.opensuse.org/request/show/1286967
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=150
2025-06-19 13:18:38 +00:00
8d5bce45ed Accepting request 1266321 from home:AndreasStieger:branches:devel:tools
- 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/request/show/1266321
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=148
2025-04-02 07:38:15 +00:00
41a12228e3 Accepting request 1248602 from home:dirkmueller:Factory
- 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/request/show/1248602
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=146
2025-02-26 09:45:42 +00:00
c39c9e9c38 Accepting request 1232890 from home:mathletic:branches:devel:tools
- update to 2.16.2
  * Fix syntax error for function pointer array with @

OBS-URL: https://build.opensuse.org/request/show/1232890
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=144
2024-12-27 16:17:47 +00:00
2e5cd017ee Accepting request 1227634 from home:mathletic:branches:devel:tools
- update to 2.16.1
  * SymbolDatabase: does not select l-value method properly

OBS-URL: https://build.opensuse.org/request/show/1227634
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=142
2024-12-02 03:30:31 +00:00
0ead5f655b Accepting request 1219208 from home:mathletic:branches:devel:tools
- 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/request/show/1219208
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=140
2024-10-30 08:13:25 +00:00
4294fc9a78 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
594231969f 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
bc1aac1024 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
cd74be909a 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
861aba0354 - 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
947427f479 - 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
b96b31d82b - 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
6d928c24c7 - 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
9ef312cf2e 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
64f739093d - 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
717f3adf21 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
31fd92ae1c - 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
3a10b490ec - 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
aa0a155053 - 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
1428e80084 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
a74a4b44af - 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
c012d69b06 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
912ac2b5ff - 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
ae9f627da1 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
b36abe75f0 - 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
0a082f6663 - 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
b015f0f77f - 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
87c98ec3a0 - 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
51d7db46c8 - 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
423b0e3eaa - 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
2bd0948bef - 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
0c0088a7c7 - 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
12bd0b21da - 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
Stephan Kulow
98469b5f45 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
1ee759af9f 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
256d32008c 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
860dee7cf7 - 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
d10fb777ff 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
aa14b128a4 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
9590fecc7d 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
30e93de0bf 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
51edc11448 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
48651b836b 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
d646d24a11 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
ce4f4abf4b - 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
d5616a67c0 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