c774de81ce
- testcondition.patch: fix expected output in TestCondition::alwaysTrue and TestCondition::alwaysTrueContainer
Andreas Stieger2025-07-31 07:40:54 +00:00
39065c0c88
- update to 2.18.0: * Updated path matching syntax for -i, --file-filter, suppressions, GUI excludes, and project file excludes. * Old patterns that use a * may need to use ** instead if it is intended to match path separators. More details can be seen in the manual. * Support for building with Qt 5 will be removed in Cppcheck 2.19. * The platform 'unix32-unsigned' has been deprecated and will be removed in Cppcheck 2.19. Please use '--platform=unix32 --funsigned-char' instead. * The platform 'unix64-unsigned' has been deprecated and will be removed in Cppcheck 2.19. Please use '--platform=unix64 --funsigned-char' instead. * Updated Qt to 6.9.1 (official Windows release only). * added CMake target run-clang-tidy-csa to run Clang Static Analyzer * added CMake option ENABLE_CSA_ALPHA to enable the Clang Static Analyzer alpha checkers * Updated TinyXML-2 to v11.0.0 * The minimum supported Python version has been bumped to 3.7. * CMake will now unconditionally use Boost.Containers if available. If CMake option USE_BOOST is specified it will now bail out when it is not found. * Fix checking a project that contains several project file entries for the same file. * Fixed --file-filter matching of looked up files in provided paths. * Split up cstyleCast checker; dangerous casts produce portability/warning reports, safe casts produce style
Dirk Mueller2025-07-22 09:50:50 +00:00
562633c396
Accepting request 1286981 from devel:tools
Ana Guerrero2025-06-20 14:49:53 +00:00
7c85084760
- update to 2.17.1: * New checks: - staticFunction: detect functions that should have internal linkage since they are not used outside of their translation unit (C code only). - Check null pointer return from memory/resource allocation functions (nullPointerOutOfMemory, nullPointerArithmeticOutOfMemory, nullPointerOutOfResources, ctunullpointerOutOfMemory, ctunullpointerOutOfResources). * Changed interface: - Added reduced check level. It can be activated with --check-level=reduced. You get faster analysis but some fewer results. The motivation is to be able to make analysis time "acceptable" for direct usage. - Added --report-type option. Enables printing of guidelines and classifications for several coding standards in place of the regular error identifiers and severities. * Other: - Removed deperecated support for builds via qmake. - Using a handwritten rule texts file for MISRA C addon violates license and copyright terms. See the manual for instructions how to download a official rule texts file from MISRA. - switch to qt6
Martin Pluskal2025-02-26 09:45:42 +00:00
63b03c8ad8
Accepting request 1233575 from devel:tools
Ana Guerrero2024-12-30 13:25:24 +00:00
e748924daa
- update to 2.16.2 * Fix syntax error for function pointer array with @
Michael Vetter2024-12-27 16:17:47 +00:00
6b6170bd04
Accepting request 1227644 from devel:tools
Ana Guerrero2024-12-02 15:59:08 +00:00
b2927a1e52
- update to 2.16.1 * SymbolDatabase: does not select l-value method properly
Michael Vetter2024-12-02 03:30:31 +00:00
9be70c6eb6
- update to 2.16.0 Improved checking: * constVariable; checking multidimensional arrays * constVariablePointer; nested array access * deallocuse Changed interface: * SARIF output. Use --output-format=sarif to activate this. * Add option --output-format=. Allowed formats are sarif and xml. Deprecations: * The previously deprecated support for Python 2.7 has been removed. Please use Python 3 instead. * The maximum value for --max-ctu-depth is currently capped at 10. This limitation will be removed in a future release. Other: * "missingInclude" is no longer implicitly enabled with "information" - you need to enable it explicitly now. * Fixed checkers report when --addon=misra.py or --addon=misra.json is used.
Martin Pluskal2024-10-30 08:13:25 +00:00
7c8a412018
Accepting request 1144161 from devel:tools
Ana Guerrero2024-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)
Dirk Mueller2024-02-05 09:44:15 +00:00
9645394ab4
Accepting request 1141685 from devel:tools
Ana Guerrero2024-01-26 21:47:47 +00:00
de53c9c74b
- update to 2.13.2: * Fix premium version check * Fix 12375
Dirk Mueller2024-01-26 09:10:09 +00:00
b0796d8df2
Accepting request 1140512 from devel:tools
Ana Guerrero2024-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
Dirk Mueller2024-01-22 09:56:02 +00:00
544f80a356
Accepting request 1134967 from devel:tools
Ana Guerrero2023-12-25 18:05:52 +00:00
c62715bad4
Accepting request 1134958 from home:mathletic:branches:devel:tools
Martin Pluskal2023-12-24 08:50:26 +00:00
2b0f219197
Accepting request 1134347 from devel:tools
Ana Guerrero2023-12-21 22:38:44 +00:00
465c4a0aa7
Accepting request 1124428 from home:Guillaume_G:branches:devel:tools
Martin Pluskal2023-11-10 08:57:12 +00:00
bcc321f05d
Accepting request 1114263 from devel:tools
Ana Guerrero2023-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
Dirk Mueller2023-09-29 07:29:11 +00:00
8c90fe76c9
- update to 2.12.1: * Support importing projects with project-name
Dirk Mueller2023-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
Dirk Mueller2023-09-15 07:59:45 +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
Dirk Mueller2023-02-27 21:49:18 +00:00
b06084542c
Accepting request 1062346 from home:pragmalin:branches:devel:tools
Martin Pluskal2023-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
Dirk Mueller2023-01-30 12:09:12 +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
Dirk Mueller2022-09-17 16:30:25 +00:00
22bde184c0
Accepting request 989720 from devel:tools
Richard Brown2022-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
Dirk Mueller2022-07-17 16:16:37 +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
Dirk Mueller2022-06-07 21:32:35 +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.
Dirk Mueller2022-03-20 19:31:39 +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
Dirk Mueller2021-07-17 13:11:33 +00:00