cppcheck/lib
Ken-Patrick Lehrmann eca7ee9260 9356: Prevent false positive when passing non-const reference to member constructor (#2370)
* Add cases for 9356

* 9356: Prevent false positive when passing non-const reference to member constructor

This workarounds false positives 'Parameter  can be declared with const [constParameter]'
when said parameter is used in constructor call. It assume the
constructor call might change the parameter (without any checks.
The drawback is that we have false negative, in cases where we could
check the constructor actually takes a const reference, or a copied by
value parameter.

* Add todo comment in isVariableMutableInInitializer
2020-01-04 11:36:45 +01:00
..
CMakeLists.txt
analyzerinfo.cpp
analyzerinfo.h
astutils.cpp Running astyle [ci skip]. 2020-01-04 00:06:27 +01:00
astutils.h Fix false positives in knownConditionTrueFalse when using expressions with const variables (#2469) 2020-01-03 19:35:28 +01:00
check.cpp Moved function from .h to .cpp 2019-12-21 11:55:11 +01:00
check.h Moved function from .h to .cpp 2019-12-21 11:55:11 +01:00
check64bit.cpp
check64bit.h
checkassert.cpp
checkassert.h added missing OVERRIDE usage and removed redundant virtual (#2190) 2019-09-20 21:57:16 +02:00
checkautovariables.cpp Fix issue 9201: FP: returnDanglingLifetime on pointer to variable of static struct (#2303) 2019-11-05 07:10:32 +01:00
checkautovariables.h Extend lifetime checking to temporaries (#2242) 2019-10-08 09:28:39 +02:00
checkbool.cpp Fixed #9405 (false positive: (style, inconclusive) Boolean expression 'dqOpen' is used in bitwise operation. Did you mean '&&') 2019-12-20 19:38:30 +01:00
checkbool.h Fix false negatives in checkBitwiseOnBoolean (#2220) 2019-10-06 09:57:31 +02:00
checkboost.cpp
checkboost.h
checkbufferoverrun.cpp Fixed #8597 (False positive - Array index is used before limits check.) 2019-12-20 09:46:01 +01:00
checkbufferoverrun.h
checkclass.cpp Running astyle [ci skip]. 2020-01-04 00:06:27 +01:00
checkclass.h Check that virtual function non-narrow access modifier in derived class (#2229) 2020-01-01 16:09:43 +01:00
checkcondition.cpp Fix false positives in knownConditionTrueFalse when using expressions with const variables (#2469) 2020-01-03 19:35:28 +01:00
checkcondition.h Add impossible values to ValueFlow (#2186) 2019-09-20 15:06:37 +02:00
checkexceptionsafety.cpp
checkexceptionsafety.h
checkfunctions.cpp Check for JSON error when parsing addon .json files + fixes (#2374) 2019-11-20 15:37:09 +01:00
checkfunctions.h
checkinternal.cpp
checkinternal.h
checkio.cpp Make iterator checks useful 2019-11-21 18:15:26 +03:00
checkio.h
checkleakautovar.cpp Check for JSON error when parsing addon .json files + fixes (#2374) 2019-11-20 15:37:09 +01:00
checkleakautovar.h Fix #7031 (improve error message for memory related warnings) (#2204) 2019-09-22 21:50:02 +02:00
checkmemoryleak.cpp Avoid some additional memleakOnRealloc false positives (#2422) 2019-12-04 12:13:44 +01:00
checkmemoryleak.h Memleak: Refactor check to separate function (#2079) 2019-08-13 13:00:59 +02:00
checknullpointer.cpp Refactoring; CWEs should be clarified 2020-01-01 09:09:10 +01:00
checknullpointer.h
checkother.cpp 9356: Prevent false positive when passing non-const reference to member constructor (#2370) 2020-01-04 11:36:45 +01:00
checkother.h Check for JSON error when parsing addon .json files + fixes (#2374) 2019-11-20 15:37:09 +01:00
checkpostfixoperator.cpp
checkpostfixoperator.h
checksizeof.cpp
checksizeof.h
checkstl.cpp Fix issue 9556: FP mismatchingContainers: raw pointer comparison (#2465) 2020-01-01 12:02:21 +01:00
checkstl.h Use lifetime analysis for checking mismatching containers (#2456) 2019-12-25 09:32:50 +01:00
checkstring.cpp Set correct type and size of string and char literals (#2275) 2019-10-20 07:11:57 +02:00
checkstring.h
checktype.cpp Fix severity of c++14 shifts with too many bits (#2213) 2019-09-25 20:16:04 +02:00
checktype.h Clarify signConversion warning message 2019-08-05 12:41:08 +02:00
checkuninitvar.cpp Refactoring; CWEs should be clarified 2020-01-01 09:09:10 +01:00
checkuninitvar.h Fix issue 9428: FP uninitvar for pointer passed to sscanf (#2344) 2019-11-13 12:46:54 +01:00
checkunusedfunctions.cpp
checkunusedfunctions.h Silence unused variable warning (#2223) 2019-09-27 08:19:45 +02:00
checkunusedvar.cpp Fixed #8990 (False positive: struct member not used (union)) 2019-12-20 18:31:55 +01:00
checkunusedvar.h
checkvaarg.cpp
checkvaarg.h added missing OVERRIDE usage and removed redundant virtual (#2190) 2019-09-20 21:57:16 +02:00
config.h Use "override" keyword in clang (#2459) 2019-12-25 18:19:00 +03:00
cppcheck.cpp Verification; Updated report 2019-12-27 19:05:22 +01:00
cppcheck.h Verification; Updated report 2019-12-27 19:05:22 +01:00
cppcheck.natvis
cppcheck.vcxproj lib/cppcheck.vcxproj: Fix Visual Studio build, add new files. 2019-10-31 08:29:19 +01:00
cppcheck.vcxproj.filters cppcheck.vcxproj.filters: Also update this Visual Studio file 2019-10-31 09:05:58 +01:00
ctu.cpp Add impossible values to ValueFlow (#2186) 2019-09-20 15:06:37 +02:00
ctu.h CTU: Add 'column' 2019-09-12 10:46:33 +02:00
errorlogger.cpp errorlogger.cpp: Handle empty file-name like "*" (unmatchedSuppression) (#2440) 2019-12-11 09:07:18 +01:00
errorlogger.h Refactoring; CWEs should be clarified 2020-01-01 09:09:10 +01:00
exprengine.cpp Verification; Only warn about uninitialized function arguments if VERIFY_UNINIT is defined 2020-01-02 06:16:36 +01:00
exprengine.h Verification; floating point division by zero 2019-12-30 19:47:18 +01:00
importproject.cpp Check for JSON error when parsing addon .json files + fixes (#2374) 2019-11-20 15:37:09 +01:00
importproject.h astyle formatting 2019-08-12 12:54:25 +02:00
lib.pri Run dmake 2019-10-30 18:38:37 +01:00
library.cpp Verification; Check function argument values 2019-12-23 22:10:43 +01:00
library.h Verification; Check function argument values 2019-12-23 22:10:43 +01:00
matchcompiler.h
mathlib.cpp Check for JSON error when parsing addon .json files + fixes (#2374) 2019-11-20 15:37:09 +01:00
mathlib.h
path.cpp Various clang-tidy fixes (#2192) 2019-09-25 15:25:19 +02:00
path.h
pathanalysis.cpp Refactor ProgramMemory and PathAnalysis (#2311) 2019-10-30 17:57:46 +01:00
pathanalysis.h Refactor ProgramMemory and PathAnalysis (#2311) 2019-10-30 17:57:46 +01:00
pathmatch.cpp
pathmatch.h
pcrerules.pri
platform.cpp use range loops / constness (#2181) 2019-09-19 20:29:33 +02:00
platform.h Updated copyright year 2019-09-01 11:49:43 +02:00
preprocessor.cpp Thread safety: use std::atomic for global flags 2019-12-19 18:38:22 +01:00
preprocessor.h Update Copyright year 2019-12-21 11:23:01 +01:00
programmemory.cpp Fix issue 9395 and 9423: False positive: nullPointerRedundantCheck (#2323) 2019-11-04 07:02:25 +01:00
programmemory.h astyle formatting 2019-10-30 18:19:45 +01:00
settings.cpp Verification; Added --verify-diff option 2019-12-31 12:05:08 +01:00
settings.h Verification; Added --verify-diff option 2019-12-31 12:05:08 +01:00
standards.h Various clang-tidy fixes (#2192) 2019-09-25 15:25:19 +02:00
suppressions.cpp
suppressions.h
symboldatabase.cpp Fix issue 9563: new daca crash: findLambdaEndToken not finding end token (#2472) 2020-01-04 10:45:24 +01:00
symboldatabase.h Improved fix for #8978 (False positive: Variable assigned value that is never used when assigning via iterator) 2019-11-17 12:08:21 +01:00
templatesimplifier.cpp fix #9539 (Syntax error for valid C++14 code) (#2446) 2019-12-12 20:50:20 +01:00
templatesimplifier.h Resolve C4800 Visual C++ warning 2019-12-16 18:11:12 +03:00
timer.cpp Check for JSON error when parsing addon .json files + fixes (#2374) 2019-11-20 15:37:09 +01:00
timer.h Check for JSON error when parsing addon .json files + fixes (#2374) 2019-11-20 15:37:09 +01:00
token.cpp Token::ConcatStr(): Handle mixed string literals (#2337) 2019-11-08 08:03:45 +01:00
token.h Set correct type and size of string and char literals (#2275) 2019-10-20 07:11:57 +02:00
tokenize.cpp Fix #8758 (add syntax error for invalid code) (#2466) 2020-01-01 15:46:09 +01:00
tokenize.h Check for JSON error when parsing addon .json files + fixes (#2374) 2019-11-20 15:37:09 +01:00
tokenlist.cpp Fix issue 9563: new daca crash: findLambdaEndToken not finding end token (#2472) 2020-01-04 10:45:24 +01:00
tokenlist.h template simplifier: fix new daca crashes (#2093) 2019-08-17 07:38:07 +02:00
utils.h Keep prefix in string and char literals (#2272) 2019-10-16 11:41:33 +02:00
valueflow.cpp Fix issue 9550: False positive: Same iterator is used with containers 'x' that are defined in different scopes (#2463) 2019-12-31 08:09:04 +01:00
valueflow.h Fix issue 6890: ValueFlow: min/max value for variable, after condition (#2460) 2019-12-26 15:47:53 +01:00
version.h Set version 2019-12-21 11:49:01 +01:00
version.rc