cppcheck/lib
chrchr-github 0854fda28a
Get type from smartpointer (#4608)
* Fix #11223 checkLibraryFunction treats "auto" as type

* Use utility function

* Get type from 'auto p = new ...'

* Fix merge

* Add test for recent fix

* Format

* Get type from smartpointer
2022-12-03 07:50:21 +01:00
..
CMakeLists.txt some small cleanups and refactorings (#4488) 2022-09-24 11:59:13 +02:00
analyzer.h include all (internal non-generated) headers in clang-tidy checks (#4100) 2022-10-16 13:51:17 +02:00
analyzerinfo.cpp Fix sense of test (.analyzerinfo files get placed in wrong directory) (#4486) 2022-09-21 17:38:23 +02:00
analyzerinfo.h Update Copyrights 2022-08-28 14:22:12 +02:00
astutils.cpp Fix #11374 FP danglingTemporaryLifetime with std::string_view (#4602) 2022-11-27 09:22:55 +01:00
astutils.h applied clang-tidy `misc-const-correctness` fixes for POD types, iterators and references (#4529) 2022-10-02 07:12:40 +02:00
calculate.h Fix 11053: Integer division by zero in calculate.h (#4092) 2022-05-09 20:27:32 +02:00
check.cpp Fix #10412 FN useStlAlgorithm with iterators (#4157) 2022-10-16 13:46:26 +02:00
check.h mitigated some clang-tidy warnings in headers (#4472) 2022-09-16 18:59:15 +02:00
check64bit.cpp Update copyright year 2022-02-05 11:45:17 +01:00
check64bit.h Update copyright year 2022-05-21 12:18:27 +02:00
checkassert.cpp Fixed #9926 (False positive assertWithSideEffects, calling method that has no side effects) 2022-10-12 07:51:50 +02:00
checkassert.h Update copyright year 2022-05-21 12:18:27 +02:00
checkautovariables.cpp Fix #11406 FP returnDanglingLifetime, std::unique_ptr and implicit conversion to bool (#4600) 2022-11-27 09:24:19 +01:00
checkautovariables.h Fix #10993 danglingTemporaryLifetime reported in two different locati… (#4462) 2022-09-14 07:28:04 +02:00
checkbool.cpp applied clang-tidy `misc-const-correctness` fixes for POD types, iterators and references (#4529) 2022-10-02 07:12:40 +02:00
checkbool.h Fix #4233 FN: Bitwise operation with bool and int (#4266) 2022-07-11 22:58:37 +02:00
checkboost.cpp Update copyright year 2022-02-05 11:45:17 +01:00
checkboost.h Update copyright year 2022-05-21 12:18:27 +02:00
checkbufferoverrun.cpp applied clang-tidy `misc-const-correctness` fixes for POD types, iterators and references (#4529) 2022-10-02 07:12:40 +02:00
checkbufferoverrun.h Fix #11145 FP negativeMemoryAllocationSize with possible value (#4387) 2022-08-20 07:56:31 +02:00
checkclass.cpp Fix crash on nullptr (#4582) 2022-11-13 23:04:51 +01:00
checkclass.h Fix couple issues with missing operatorEqVarError (#4576) 2022-11-05 10:48:34 +01:00
checkcondition.cpp Fix #10412 FN useStlAlgorithm with iterators (#4157) 2022-10-16 13:46:26 +02:00
checkcondition.h Use return instead of condition for alwaysTrueFalse check (#4446) 2022-10-09 21:03:48 +02:00
checkexceptionsafety.cpp Typos fix (#4509) 2022-09-27 06:48:06 +02:00
checkexceptionsafety.h removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
checkfunctions.cpp Typo found in Summary of CWE: 758 (#4553) 2022-10-20 19:11:15 +02:00
checkfunctions.h New check: use memcpy/memset instead of loop (#4257) 2022-09-03 23:29:06 +02:00
checkinternal.cpp applied clang-tidy `misc-const-correctness` fixes for POD types, iterators and references (#4529) 2022-10-02 07:12:40 +02:00
checkinternal.h cleaned up includes based on include-what-you-use (#4502) 2022-09-25 09:20:34 +02:00
checkio.cpp applied clang-tidy `misc-const-correctness` fixes for POD types, iterators and references (#4529) 2022-10-02 07:12:40 +02:00
checkio.h fixed `modernize-use-equals-delete` warnings in headers (#4177) 2022-06-07 21:25:23 +02:00
checkleakautovar.cpp Fix 11396, doublefree on munmap in if-statement (#4594) 2022-11-26 15:45:27 +01:00
checkleakautovar.h Fix #11391 FP doubleFree with goto (#4587) 2022-11-19 16:49:34 +01:00
checkmemoryleak.cpp Fix defaulted and deleted functions (#4540) 2022-10-10 20:17:33 +02:00
checkmemoryleak.h Fix #9653 FP leakReturnValNotUsed although (void) is specified (#4431) 2022-09-27 20:09:04 +02:00
checknullpointer.cpp Fix #11401 nullpointer dereference with alignof (#4601) 2022-11-27 09:20:19 +01:00
checknullpointer.h use `emptyString` more consistently (#4034) 2022-07-10 10:57:29 +02:00
checkother.cpp Improve fix for #11383 FP selfAssignment: lambda capture (#4584) 2022-11-18 19:44:32 +01:00
checkother.h Fix #11371 Detect assignment to temporary (#4571) 2022-11-01 11:46:42 +01:00
checkpostfixoperator.cpp Update copyright year 2022-02-05 11:45:17 +01:00
checkpostfixoperator.h Update copyright year 2022-05-21 12:18:27 +02:00
checksizeof.cpp Fix #10412 FN useStlAlgorithm with iterators (#4157) 2022-10-16 13:46:26 +02:00
checksizeof.h Update copyright year 2022-05-21 12:18:27 +02:00
checkstl.cpp Fix #10412 FN useStlAlgorithm with iterators (#4157) 2022-10-16 13:46:26 +02:00
checkstl.h Fix #7515 New check: Not needed c_str() operation (#4371) 2022-08-20 20:52:10 +02:00
checkstring.cpp Fix #11166 inefficient way to remove last character from std::string (#4267) 2022-07-11 23:07:37 +02:00
checkstring.h Update copyright year 2022-05-21 12:18:27 +02:00
checktype.cpp iwyu.yml: use `debian:unstable` to always get latest include-what-you-use / cleaned up includes (#4466) 2022-09-16 07:15:49 +02:00
checktype.h removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
checkuninitvar.cpp applied clang-tidy `misc-const-correctness` fixes for POD types, iterators and references (#4529) 2022-10-02 07:12:40 +02:00
checkuninitvar.h Rename old uninitvar ID to use legacyUninitvar (#4043) 2022-04-27 17:37:37 +02:00
checkunusedfunctions.cpp various optimizations (#4535) 2022-10-06 20:12:07 +02:00
checkunusedfunctions.h various optimizations (#4535) 2022-10-06 20:12:07 +02:00
checkunusedvar.cpp Fix #10412 FN useStlAlgorithm with iterators (#4157) 2022-10-16 13:46:26 +02:00
checkunusedvar.h removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
checkvaarg.cpp iwyu.yml: use `debian:unstable` to always get latest include-what-you-use / cleaned up includes (#4466) 2022-09-16 07:15:49 +02:00
checkvaarg.h Update copyright year 2022-05-21 12:18:27 +02:00
clangimport.cpp Fix #10412 FN useStlAlgorithm with iterators (#4157) 2022-10-16 13:46:26 +02:00
clangimport.h LCppC backports: Refactorizations/Optimizations (#4204) 2022-08-21 17:21:02 +02:00
color.cpp Update copyright year 2022-02-05 11:45:17 +01:00
color.h Fix MSVC build and some warnings (#3334) 2021-07-16 21:55:12 +02:00
config.h some `--exception-handling` related improvements (#4368) 2022-08-20 20:54:31 +02:00
cppcheck.cpp dump: output language to dumpfile 2022-11-20 12:30:09 +01:00
cppcheck.h cleaned up includes based on include-what-you-use (#4502) 2022-09-25 09:20:34 +02:00
cppcheck.natvis
cppcheck.vcxproj LCppC backports: Refactorizations/Optimizations (#4204) 2022-08-21 17:21:02 +02:00
cppcheck.vcxproj.filters LCppC backports: Refactorizations/Optimizations (#4204) 2022-08-21 17:21:02 +02:00
ctu.cpp Fix #11361 FP ctuPointerArith with unknown buffer size (#4591) 2022-11-23 19:11:47 +01:00
ctu.h mitigated some clang-tidy warnings in headers (#4472) 2022-09-16 18:59:15 +02:00
errorlogger.cpp applied clang-tidy `misc-const-correctness` fixes for POD types, iterators and references (#4529) 2022-10-02 07:12:40 +02:00
errorlogger.h avoid some unnecessary object creations and copies (#4493) 2022-09-29 21:47:17 +02:00
errortypes.cpp enabled and fixed `modernize-pass-by-value` clang-tidy warnings (#4169) 2022-07-28 22:51:45 +02:00
errortypes.h runformat 2022-11-12 22:36:26 +01:00
forwardanalyzer.cpp ValueFlow: throw TerminateException in valueFlowGenericForward in case analysis is terminated 2022-11-12 12:47:54 +01:00
forwardanalyzer.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
importproject.cpp let --premium=misra-c-2012 also set --addon=misra. changed addons container to a set 2022-10-31 15:04:16 +01:00
importproject.h fixed and enabled some Clang compiler warnings (#4517) 2022-09-29 21:59:02 +02:00
infer.cpp avoid unnecessary copies with `push_back()` and `push_front()` (#4451) 2022-09-08 09:21:35 +02:00
infer.h Update copyright year 2022-02-05 11:45:17 +01:00
lib.pri Remove bug hunting. This feature will be provided in Cppcheck premium. 2022-04-11 07:31:33 +02:00
library.cpp Fix #10412 FN useStlAlgorithm with iterators (#4157) 2022-10-16 13:46:26 +02:00
library.h various optimizations (#4535) 2022-10-06 20:12:07 +02:00
matchcompiler.h Update copyright year 2021-09-26 11:34:56 +02:00
mathlib.cpp Fix #11368 FP "Same value in both branches of ternary operator" on plus and minus zero (#4569) 2022-10-31 15:18:25 +01:00
mathlib.h mathlib.h: replaced slow `std::ostringstream` with `std::to_string()` in `MathLib::toString()` (#4382) 2022-08-19 20:44:24 +02:00
path.cpp various optimizations (#4535) 2022-10-06 20:12:07 +02:00
path.h various optimizations (#4535) 2022-10-06 20:12:07 +02:00
pathanalysis.cpp applied clang-tidy `misc-const-correctness` fixes for POD types, iterators and references (#4529) 2022-10-02 07:12:40 +02:00
pathanalysis.h enabled functionConst and functionStatic in selfcheck (#3862) 2022-03-02 07:46:47 +01:00
pathmatch.cpp cleaned up includes based on include-what-you-use (#4358) 2022-08-14 12:44:19 +02:00
pathmatch.h enabled and fixed `modernize-pass-by-value` clang-tidy warnings (#4169) 2022-07-28 22:51:45 +02:00
pcrerules.pri
platform.cpp cleaned up includes based on include-what-you-use (#4358) 2022-08-14 12:44:19 +02:00
platform.h applied clang-tidy `misc-const-correctness` fixes for POD types, iterators and references (#4529) 2022-10-02 07:12:40 +02:00
precompiled.h Update copyright year 2022-02-05 11:45:17 +01:00
preprocessor.cpp Fix #10412 FN useStlAlgorithm with iterators (#4157) 2022-10-16 13:46:26 +02:00
preprocessor.h cleaned up includes based on include-what-you-use (#4358) 2022-08-14 12:44:19 +02:00
programmemory.cpp applied clang-tidy `misc-const-correctness` fixes for POD types, iterators and references (#4529) 2022-10-02 07:12:40 +02:00
programmemory.h include all (internal non-generated) headers in clang-tidy checks (#4100) 2022-10-16 13:51:17 +02:00
reverseanalyzer.cpp applied clang-tidy `misc-const-correctness` fixes for POD types, iterators and references (#4529) 2022-10-02 07:12:40 +02:00
reverseanalyzer.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
settings.cpp dump: output language to dumpfile 2022-11-20 12:30:09 +01:00
settings.h let --premium=misra-c-2012 also set --addon=misra. changed addons container to a set 2022-10-31 15:04:16 +01:00
smallvector.h include all (internal non-generated) headers in clang-tidy checks (#4100) 2022-10-16 13:51:17 +02:00
sourcelocation.h lib/sourcelocation.h: add missing <cstdint> include (#4474) 2022-09-16 21:36:37 +02:00
standards.h added (partial) support for specifying C++23 and support more "-std" options (#3212) 2022-04-15 16:17:36 +02:00
summaries.cpp applied clang-tidy `misc-const-correctness` fixes for POD types, iterators and references (#4529) 2022-10-02 07:12:40 +02:00
summaries.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
suppressions.cpp iwyu.yml: use `debian:unstable` to always get latest include-what-you-use / cleaned up includes (#4466) 2022-09-16 07:15:49 +02:00
suppressions.h mitigated some clang-tidy warnings in headers (#4472) 2022-09-16 18:59:15 +02:00
symboldatabase.cpp Fix #11406 FP returnDanglingLifetime, std::unique_ptr and implicit conversion to bool (#4600) 2022-11-27 09:24:19 +01:00
symboldatabase.h Fix #11406 FP returnDanglingLifetime, std::unique_ptr and implicit conversion to bool (#4600) 2022-11-27 09:24:19 +01:00
templatesimplifier.cpp #11351 follow-up: Handle more variadic template arguments (#4554) 2022-10-22 00:28:33 +02:00
templatesimplifier.h Update Copyrights 2022-08-28 14:22:12 +02:00
timer.cpp Update Copyrights 2022-08-28 14:22:12 +02:00
timer.h fixed #11249 (potential hang with -j and --showtime= when using threads) - synchronized access to `TimerResults::mResults` / added TSAN to CI (#4355) 2022-08-23 20:30:45 +02:00
token.cpp Get type from smartpointer (#4608) 2022-12-03 07:50:21 +01:00
token.h include all (internal non-generated) headers in clang-tidy checks (#4100) 2022-10-16 13:51:17 +02:00
tokenize.cpp Partial fix for #11378 (iscpp11init) (#4595) 2022-11-27 09:26:46 +01:00
tokenize.h cleaned up includes based on include-what-you-use (#4358) 2022-08-14 12:44:19 +02:00
tokenlist.cpp Partial fix for #11378 (iscpp11init) (#4595) 2022-11-27 09:26:46 +01:00
tokenlist.h Fix #11383 FP selfAssignment: lambda capture / #11380 FP operatorEqRetRefThis (#4581) 2022-11-13 21:20:44 +01:00
tokenrange.h cleaned up includes based on include-what-you-use (#4502) 2022-09-25 09:20:34 +02:00
utils.cpp applied clang-tidy `misc-const-correctness` fixes for POD types, iterators and references (#4529) 2022-10-02 07:12:40 +02:00
utils.h Fix #10412 FN useStlAlgorithm with iterators (#4157) 2022-10-16 13:46:26 +02:00
valueflow.cpp Fix #11417 FP knownConditionTrueFalse with container and brace init (#4606) 2022-12-02 22:07:08 +01:00
valueflow.h Fix #11368 FP "Same value in both branches of ternary operator" on plus and minus zero (#4569) 2022-10-31 15:18:25 +01:00
valueptr.h include all (internal non-generated) headers in clang-tidy checks (#4100) 2022-10-16 13:51:17 +02:00
version.h added missing version bumps to 2.10 (#4420) 2022-09-09 21:02:04 +02:00
version.rc