cppcheck/lib
chrchr-github cd21918520
Fix FP memleak with outparam allocation (f'up to #12186) (#5677)
I wonder if it is worth trying to get this right. We also have FPs when
the return value is assigned to a variable, and that seems much harder
to fix.
2023-11-19 19:51:32 +01:00
..
CMakeLists.txt fixed #11925 (build slowest files first) (#5419) 2023-09-11 20:22:07 +02:00
addoninfo.cpp cleaned up includes based on include-what-you-use (#5532) 2023-10-09 10:07:20 +02:00
addoninfo.h generate `AddonInfo` only once (#4958) 2023-10-08 21:28:57 +02:00
analyzer.h CI: Add selfcheck using Cppcheck Premium. Activates Misra C++ 2008 and Cert C++ 2016 checkers. (#5623) 2023-11-06 15:31:47 +01:00
analyzerinfo.cpp extracted `FileSettings` from `ImportProject` to `filesettings.h` (#5604) 2023-11-02 17:42:41 +01:00
analyzerinfo.h extracted `FileSettings` from `ImportProject` to `filesettings.h` (#5604) 2023-11-02 17:42:41 +01:00
astutils.cpp Fix #12188 FN uninitvar with increment of struct member (#5665) 2023-11-16 18:11:12 +01:00
astutils.h Fix #12188 FN uninitvar with increment of struct member (#5665) 2023-11-16 18:11:12 +01:00
calculate.h fixed some "Variable can be made constexpr" Rider warnings (#5615) 2023-11-03 09:55:44 +01:00
check.cpp removed unnecessary encapsulation of severity enum and made it an `enum class` (#5541) 2023-10-12 11:58:39 +02:00
check.h removed unnecessary encapsulation of severity enum and made it an `enum class` (#5541) 2023-10-12 11:58:39 +02:00
check64bit.cpp fixed some "Declarator is never used" Rider warnings (#5535) 2023-10-09 18:06:35 +02:00
check64bit.h cleaned up access of the check classes (#5387) 2023-09-11 11:12:42 +02:00
checkassert.cpp fixed "Redundant elaborated type specifier" Rider warnings (#5517) 2023-10-08 09:10:17 +02:00
checkassert.h adjusted tests to reduce the amount of `friend` declarations necessary (#5435) 2023-09-11 20:26:22 +02:00
checkautovariables.cpp Fix #12173 FP danglingTempReference with loop over init list (#5652) 2023-11-12 10:19:45 +01:00
checkautovariables.h adjusted tests to reduce the amount of `friend` declarations necessary (#5435) 2023-09-11 20:26:22 +02:00
checkbool.cpp Partial fix for #11897 (Safety: show what checks are enabled/disabled) (#5372) 2023-08-29 12:00:52 +02:00
checkbool.h adjusted tests to reduce the amount of `friend` declarations necessary (#5435) 2023-09-11 20:26:22 +02:00
checkboost.cpp Update copyright year 2023-09-06 15:51:05 +02:00
checkboost.h adjusted tests to reduce the amount of `friend` declarations necessary (#5435) 2023-09-11 20:26:22 +02:00
checkbufferoverrun.cpp removed the need for `Check` object in `CTU::getUnsafeUsage()` callback / some CheckUninitVar cleanups (#5610) 2023-11-03 18:27:11 +01:00
checkbufferoverrun.h removed the need for `Check` object in `CTU::getUnsafeUsage()` callback / some CheckUninitVar cleanups (#5610) 2023-11-03 18:27:11 +01:00
checkclass.cpp Partial fix for #12162 false negative: functionConst (#5639) 2023-11-08 22:37:45 +01:00
checkclass.h moved `MyFileInfo` definitions into source files (#4697) 2023-10-21 16:58:29 +02:00
checkcondition.cpp CI: Add selfcheck using Cppcheck Premium. Activates Misra C++ 2008 and Cert C++ 2016 checkers. (#5623) 2023-11-06 15:31:47 +01:00
checkcondition.h adjusted tests to reduce the amount of `friend` declarations necessary (#5435) 2023-09-11 20:26:22 +02:00
checkers.cpp fixed some typos (#5562) 2023-10-17 18:32:07 +02:00
checkers.h CI: Add selfcheck using Cppcheck Premium. Activates Misra C++ 2008 and Cert C++ 2016 checkers. (#5623) 2023-11-06 15:31:47 +01:00
checkersreport.cpp cleaned up includes based on include-what-you-use (#5532) 2023-10-09 10:07:20 +02:00
checkersreport.h CI: Add selfcheck using Cppcheck Premium. Activates Misra C++ 2008 and Cert C++ 2016 checkers. (#5623) 2023-11-06 15:31:47 +01:00
checkexceptionsafety.cpp fixed "Redundant elaborated type specifier" Rider warnings (#5517) 2023-10-08 09:10:17 +02:00
checkexceptionsafety.h adjusted tests to reduce the amount of `friend` declarations necessary (#5435) 2023-09-11 20:26:22 +02:00
checkfunctions.cpp MathLib: renamed `to{U}LongNumber()` to `toBig{U}Number()` (#5503) 2023-10-05 19:21:42 +02:00
checkfunctions.h adjusted tests to reduce the amount of `friend` declarations necessary (#5435) 2023-09-11 20:26:22 +02:00
checkinternal.cpp fixed "Redundant dereferencing and tasking address expression" Rider warnings (#5563) 2023-10-16 14:09:03 +02:00
checkinternal.h adjusted tests to reduce the amount of `friend` declarations necessary (#5435) 2023-09-11 20:26:22 +02:00
checkio.cpp moved some classes/structs into anonymous namespace (#5669) 2023-11-16 15:49:41 +01:00
checkio.h iwyu.yml: made `include-what-you-use` output more verbose / cleaned up includes (#5540) 2023-10-16 12:57:49 +02:00
checkleakautovar.cpp Fix FP memleak with outparam allocation (f'up to #12186) (#5677) 2023-11-19 19:51:32 +01:00
checkleakautovar.h Don't report checkLibraryUseIgnore for known functions (refs #7719) (#5664) 2023-11-16 14:23:08 +01:00
checkmemoryleak.cpp iwyu.yml: made `include-what-you-use` output more verbose / cleaned up includes (#5540) 2023-10-16 12:57:49 +02:00
checkmemoryleak.h iwyu.yml: made `include-what-you-use` output more verbose / cleaned up includes (#5540) 2023-10-16 12:57:49 +02:00
checknullpointer.cpp removed the need for `Check` object in `CTU::getUnsafeUsage()` callback / some CheckUninitVar cleanups (#5610) 2023-11-03 18:27:11 +01:00
checknullpointer.h moved `MyFileInfo` definitions into source files (#4697) 2023-10-21 16:58:29 +02:00
checkother.cpp Fix #12185 FN constVariablePointer with stream (#5659) 2023-11-16 17:43:20 +01:00
checkother.h Fix #12134 false negative: passedByValue (#5607) 2023-10-31 19:08:08 +01:00
checkpostfixoperator.cpp fixed "Redundant elaborated type specifier" Rider warnings (#5517) 2023-10-08 09:10:17 +02:00
checkpostfixoperator.h cleaned up access of the check classes (#5387) 2023-09-11 11:12:42 +02:00
checksizeof.cpp fixed some "Declarator is never used" Rider warnings (#5535) 2023-10-09 18:06:35 +02:00
checksizeof.h adjusted tests to reduce the amount of `friend` declarations necessary (#5435) 2023-09-11 20:26:22 +02:00
checkstl.cpp Partial fix for #11469 FP mismatchingContainerExpression warning (#5674) 2023-11-17 17:12:38 +01:00
checkstl.h adjusted tests to reduce the amount of `friend` declarations necessary (#5435) 2023-09-11 20:26:22 +02:00
checkstring.cpp fixed some "Variable can be made constexpr" Rider warnings (#5615) 2023-11-03 09:55:44 +01:00
checkstring.h adjusted tests to reduce the amount of `friend` declarations necessary (#5435) 2023-09-11 20:26:22 +02:00
checktype.cpp fixed some "Variable can be made constexpr" Rider warnings (#5615) 2023-11-03 09:55:44 +01:00
checktype.h adjusted tests to reduce the amount of `friend` declarations necessary (#5435) 2023-09-11 20:26:22 +02:00
checkuninitvar.cpp Fix #12188 FN uninitvar with increment of struct member (#5665) 2023-11-16 18:11:12 +01:00
checkuninitvar.h removed the need for `Check` object in `CTU::getUnsafeUsage()` callback / some CheckUninitVar cleanups (#5610) 2023-11-03 18:27:11 +01:00
checkunusedfunctions.cpp fixed "Redundant elaborated type specifier" Rider warnings (#5517) 2023-10-08 09:10:17 +02:00
checkunusedfunctions.h fixed #11483 (FN unusedFunction for method with inline implementation) (#5457) 2023-09-20 14:45:44 +02:00
checkunusedvar.cpp Fix #12176 false positive: unassignedVariable (#5656) 2023-11-14 12:26:12 +01:00
checkunusedvar.h cleaned up access of the check classes (#5387) 2023-09-11 11:12:42 +02:00
checkvaarg.cpp cleaned up includes based on include-what-you-use (#5532) 2023-10-09 10:07:20 +02:00
checkvaarg.h adjusted tests to reduce the amount of `friend` declarations necessary (#5435) 2023-09-11 20:26:22 +02:00
clangimport.cpp Fix #12119 FN constVariablePointer with reassigned pointer (#5592) 2023-10-28 16:48:39 +02:00
clangimport.h LCppC backports: Refactorizations/Optimizations (#4204) 2022-08-21 17:21:02 +02:00
color.cpp do not pass POD types by reference (based on clazy `function-args-by-value` check) (#5388) 2023-09-11 20:40:39 +02:00
color.h do not pass POD types by reference (based on clazy `function-args-by-value` check) (#5388) 2023-09-11 20:40:39 +02:00
config.h config.h: improved and cleaned up some preprocessor checks (#5663) 2023-11-15 15:31:12 +01:00
cppcheck.cpp Fix #10866 (no preprocessorErrorDirective and code generated in case of unconditional #error) (#5670) 2023-11-16 17:25:49 +01:00
cppcheck.h fixed #12145 - provided order of source files is not preserved (#5625) 2023-11-07 21:21:24 +01:00
cppcheck.natvis added .gitattributes and normalized files (#4668) 2022-12-30 21:33:45 +01:00
cppcheck.vcxproj extracted `FileSettings` from `ImportProject` to `filesettings.h` (#5604) 2023-11-02 17:42:41 +01:00
cppcheck.vcxproj.filters Fix #11897 (Safety: show what checks are enabled/disabled) (#5378) 2023-08-31 18:28:47 +02:00
ctu.cpp removed the need for `Check` object in `CTU::getUnsafeUsage()` callback / some CheckUninitVar cleanups (#5610) 2023-11-03 18:27:11 +01:00
ctu.h removed the need for `Check` object in `CTU::getUnsafeUsage()` callback / some CheckUninitVar cleanups (#5610) 2023-11-03 18:27:11 +01:00
errorlogger.cpp Fix #12079 (Make misra-config a critical error) (#5578) 2023-10-28 16:58:59 +02:00
errorlogger.h removed unnecessary encapsulation of severity enum and made it an `enum class` (#5541) 2023-10-12 11:58:39 +02:00
errortypes.cpp removed unnecessary encapsulation of severity enum and made it an `enum class` (#5541) 2023-10-12 11:58:39 +02:00
errortypes.h removed unnecessary encapsulation of severity enum and made it an `enum class` (#5541) 2023-10-12 11:58:39 +02:00
filesettings.h extracted `FileSettings` from `ImportProject` to `filesettings.h` (#5604) 2023-11-02 17:42:41 +01:00
findtoken.h Fix 11983: False positive: uninitialized variable (#5443) 2023-09-13 23:27:08 +02:00
forwardanalyzer.cpp moved some classes/structs into anonymous namespace (#5669) 2023-11-16 15:49:41 +01:00
forwardanalyzer.h Update copyright year 2023-06-21 19:58:11 +02:00
fwdanalysis.cpp Fix #12142 FP uninitStructMember, unreadVariable with pointer to member (#5618) 2023-11-04 13:40:06 +01:00
fwdanalysis.h fixed "Redundant elaborated type specifier" Rider warnings (#5517) 2023-10-08 09:10:17 +02:00
importproject.cpp fixed #12059 - added `--fsigned-char` and `--funsigned-char` command-line options (#5580) 2023-11-08 09:28:33 +01:00
importproject.h extracted `FileSettings` from `ImportProject` to `filesettings.h` (#5604) 2023-11-02 17:42:41 +01:00
infer.cpp moved some classes/structs into anonymous namespace (#5669) 2023-11-16 15:49:41 +01:00
infer.h moved some classes/structs into anonymous namespace (#5669) 2023-11-16 15:49:41 +01:00
json.h fixed/suppressed several compiler warnings (#5327) 2023-08-16 19:35:53 +02:00
keywords.cpp iwyu.yml: made `include-what-you-use` output more verbose / cleaned up includes (#5540) 2023-10-16 12:57:49 +02:00
keywords.h added clean C/C++ keyword lists and use them in `TokenList` (#3774) 2023-02-24 21:43:27 +01:00
lib.pri extracted `FileSettings` from `ImportProject` to `filesettings.h` (#5604) 2023-11-02 17:42:41 +01:00
library.cpp Fix #12087 Library: add Container::Action::FIND_CONST (#5579) 2023-10-20 21:22:06 +02:00
library.h Fix #12087 Library: add Container::Action::FIND_CONST (#5579) 2023-10-20 21:22:06 +02:00
matchcompiler.h Update copyright year 2023-09-06 15:51:05 +02:00
mathlib.cpp MathLib: renamed `to{U}LongNumber()` to `toBig{U}Number()` (#5503) 2023-10-05 19:21:42 +02:00
mathlib.h MathLib: renamed `to{U}LongNumber()` to `toBig{U}Number()` (#5503) 2023-10-05 19:21:42 +02:00
path.cpp fixed some "Variable can be made constexpr" Rider warnings (#5615) 2023-11-03 09:55:44 +01:00
path.h Fix #12083 FN passedByValue with usage in ternary (#5575) 2023-10-31 16:12:38 +01:00
pathanalysis.cpp iwyu.yml: made `include-what-you-use` output more verbose / cleaned up includes (#5540) 2023-10-16 12:57:49 +02:00
pathanalysis.h Update copyright year 2023-06-21 19:58:11 +02:00
pathmatch.cpp Update copyright year 2023-01-28 10:16:34 +01:00
pathmatch.h enabled and fixed `modernize-pass-by-value` clang-tidy warnings (#4169) 2022-07-28 22:51:45 +02:00
pcrerules.pri pro and pri files: remove unneeded empty lines, use spaces for consistency 2012-10-12 17:46:57 +02:00
platform.cpp refs #11928 / refs #10045 / fixes #11794 - generate `limits.h`/`climits` defines from platform (#5414) 2023-10-21 17:21:12 +02:00
platform.h refs #11928 / refs #10045 / fixes #11794 - generate `limits.h`/`climits` defines from platform (#5414) 2023-10-21 17:21:12 +02:00
precompiled.h Update copyright year 2023-06-21 19:58:11 +02:00
preprocessor.cpp refs #11928 / refs #10045 / fixes #11794 - generate `limits.h`/`climits` defines from platform (#5414) 2023-10-21 17:21:12 +02:00
preprocessor.h Update copyright year 2023-06-21 19:58:11 +02:00
programmemory.cpp moved some classes/structs into anonymous namespace (#5669) 2023-11-16 15:49:41 +01:00
programmemory.h fixed some CLion inspection warnings (#4688) 2023-04-28 16:02:41 +02:00
reverseanalyzer.cpp moved some classes/structs into anonymous namespace (#5669) 2023-11-16 15:49:41 +01:00
reverseanalyzer.h Update copyright year 2023-06-21 19:58:11 +02:00
settings.cpp removed unnecessary encapsulation of severity enum and made it an `enum class` (#5541) 2023-10-12 11:58:39 +02:00
settings.h moved `fileSettings` out of `Settings` (#5608) 2023-11-03 23:24:04 +01:00
smallvector.h Add missing rebinding trait to TaggedAllocator (complete #5015) (#5146) 2023-06-13 11:22:43 +02:00
sourcelocation.h config.h: improved and cleaned up some preprocessor checks (#5663) 2023-11-15 15:31:12 +01:00
standards.h Update copyright year 2023-09-06 15:51:05 +02:00
summaries.cpp fixed some "Variable can be made constexpr" Rider warnings (#5615) 2023-11-03 09:55:44 +01:00
summaries.h
suppressions.cpp Fixed #3537 (Allow inline suppression comments for macros) (#5559) 2023-10-16 19:43:15 +02:00
suppressions.h Fixed #3537 (Allow inline suppression comments for macros) (#5559) 2023-10-16 19:43:15 +02:00
symboldatabase.cpp Fix #12157 SymbolDatabase: Token::type() is not set properly when inn… (#5635) 2023-11-07 19:57:45 +01:00
symboldatabase.h Fix #12151 (Tokenizer::arraySize: enum constant used as index in array initialization) (#5633) 2023-11-07 19:19:19 +01:00
templatesimplifier.cpp fixed some "Variable can be made constexpr" Rider warnings (#5615) 2023-11-03 09:55:44 +01:00
templatesimplifier.h Fix Cert C++ warnings reported by Cppcheck Premium (#5528) 2023-10-09 11:20:56 +02:00
timer.cpp fixed "Redundant elaborated type specifier" Rider warnings (#5517) 2023-10-08 09:10:17 +02:00
timer.h fixed "Redundant elaborated type specifier" Rider warnings (#5517) 2023-10-08 09:10:17 +02:00
token.cpp fixed #10760 - added file name to ValueFlow `--debug` output (#5655) 2023-11-16 13:44:50 +01:00
token.h moved `TokensFrontBack` from `token.h` to `tokenlist.h` (#5547) 2023-10-21 09:14:25 +02:00
tokenize.cpp Fix #12178 extern "C++" scope generates valueflow (#5654) 2023-11-14 10:02:41 +01:00
tokenize.h Fix #12151 (Tokenizer::arraySize: enum constant used as index in array initialization) (#5633) 2023-11-07 19:19:19 +01:00
tokenlist.cpp moved some classes/structs into anonymous namespace (#5669) 2023-11-16 15:49:41 +01:00
tokenlist.h moved `TokensFrontBack` from `token.h` to `tokenlist.h` (#5547) 2023-10-21 09:14:25 +02:00
tokenrange.h Update copyright year 2023-01-28 10:16:34 +01:00
utils.cpp iwyu.yml: use a distro which has the latest `include-what-you-use` / enabled Qt mappings / cleaned up includes (#4885) 2023-04-08 16:08:47 +02:00
utils.h iwyu.yml: made `include-what-you-use` output more verbose / cleaned up includes (#5540) 2023-10-16 12:57:49 +02:00
valueflow.cpp Fix #12182 (speedup valueFlow by only running valueFlowNumber once) (#5678) 2023-11-19 18:56:48 +01:00
valueflow.h Use in-class initializers, default constructors, class -> struct (#4842) 2023-08-08 11:05:02 +02:00
valueptr.h enabled and mitigated `modernize-use-equals-default` clang-tidy warnings / removed unnecessary default destructors (#5335) 2023-08-16 17:13:36 +02:00
version.h CI: Add selfcheck using Cppcheck Premium. Activates Misra C++ 2008 and Cert C++ 2016 checkers. (#5623) 2023-11-06 15:31:47 +01:00
version.rc added .gitattributes and normalized files (#4668) 2022-12-30 21:33:45 +01:00
vfvalue.cpp optimized `ProgramMemory` a bit (#5668) 2023-11-16 14:35:25 +01:00
vfvalue.h optimized `ProgramMemory` a bit (#5668) 2023-11-16 14:35:25 +01:00