cppcheck/lib
Rikard Falkeborn 2cacb13f85
Fix #10671: functionConst FN with begin/end and const_iterator (#3749)
Check if the iterator is assigned to a const_iterator or
const_revese_iterator, in which case it is possible the function can be
const. Unfortunately, it is not possible to remove the hard coding of
cbegin, cend, crbegin and crend due to the need to handle auto, as in
the following code snippet:

    void cbegin_auto(void)
    {
        for (auto it = m_str.cbegin(); it != m_str.cend(); ++it) {;}
    }
2022-02-02 19:37:06 +01:00
..
CMakeLists.txt use target-specific configuration instead of global ones in CMake (#3534) 2021-10-30 09:08:07 +02:00
analyzer.h Propagate partially uninit variables in ValueFlow (#3533) 2021-10-30 07:43:37 +02:00
analyzerinfo.cpp added an include-what-you-use GitHub Action (#3759) 2022-02-01 17:19:19 +01:00
analyzerinfo.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
astutils.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
astutils.h Typos found by running "codespell" (#3702) 2022-01-13 17:24:26 +01:00
bughuntingchecks.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
bughuntingchecks.h added some missing copyright headers (#3758) 2022-01-26 19:02:20 +01:00
calculate.h cleaned up includes based on include-what-you-use (#3627) 2021-12-15 19:47:27 +01:00
check.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
check.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
check64bit.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
check64bit.h Update copyright year 2021-09-26 11:34:56 +02:00
checkassert.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
checkassert.h Update copyright year 2021-09-26 11:34:56 +02:00
checkautovariables.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
checkautovariables.h avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
checkbool.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
checkbool.h Update copyright year 2021-09-26 11:34:56 +02:00
checkboost.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
checkboost.h Update copyright year 2021-09-26 11:34:56 +02:00
checkbufferoverrun.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
checkbufferoverrun.h avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
checkclass.cpp Fix #10671: functionConst FN with begin/end and const_iterator (#3749) 2022-02-02 19:37:06 +01:00
checkclass.h avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
checkcondition.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
checkcondition.h avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
checkexceptionsafety.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
checkexceptionsafety.h cleaned up includes based on include-what-you-use (#3627) 2021-12-15 19:47:27 +01:00
checkfunctions.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
checkfunctions.h avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
checkinternal.cpp Update copyright year 2021-09-26 11:34:56 +02:00
checkinternal.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
checkio.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
checkio.h Fix #10632 (FN charset in format string) (#3590) 2021-12-01 09:51:48 +01:00
checkleakautovar.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
checkleakautovar.h avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
checkmemoryleak.cpp Fix 10158 FP memleak when pointer is stored in a sub-object (#3764) 2022-02-02 13:13:12 +01:00
checkmemoryleak.h avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
checknullpointer.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
checknullpointer.h avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
checkother.cpp added an include-what-you-use GitHub Action (#3759) 2022-02-01 17:19:19 +01:00
checkother.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
checkpostfixoperator.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
checkpostfixoperator.h Update copyright year 2021-09-26 11:34:56 +02:00
checksizeof.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
checksizeof.h Update copyright year 2021-09-26 11:34:56 +02:00
checkstl.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
checkstl.h fixed some unusedFunction warnings (#3618) 2022-01-04 15:48:08 +01:00
checkstring.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
checkstring.h Update copyright year 2021-09-26 11:34:56 +02:00
checktype.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
checktype.h avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
checkuninitvar.cpp Fix #9696 FP uninitdata - writing pointer to stream (#3772) 2022-02-02 12:24:32 +01:00
checkuninitvar.h avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
checkunusedfunctions.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
checkunusedfunctions.h avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
checkunusedvar.cpp Fix #10684 FP unusedStructMember with static object (#3681) 2022-02-02 19:28:16 +01:00
checkunusedvar.h avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
checkvaarg.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
checkvaarg.h Update copyright year 2021-09-26 11:34:56 +02:00
clangimport.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
clangimport.h added some missing copyright headers (#3758) 2022-01-26 19:02:20 +01:00
color.cpp added an include-what-you-use GitHub Action (#3759) 2022-02-01 17:19:19 +01:00
color.h Fix MSVC build and some warnings (#3334) 2021-07-16 21:55:12 +02:00
config.h added some more missing copyright headers (#3766) 2022-01-28 15:56:11 +01:00
cppcheck.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
cppcheck.h avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
cppcheck.natvis Fixed Visual Studio Natvis file after recent refactoring (#1299) 2018-07-09 08:27:26 +02:00
cppcheck.vcxproj MSVC: add missing files to project (#3500) 2021-10-11 19:01:49 +02:00
cppcheck.vcxproj.filters Fix MSVC build (#3671) 2022-01-04 15:38:37 +01:00
ctu.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
ctu.h avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
errorlogger.cpp added an include-what-you-use GitHub Action (#3759) 2022-02-01 17:19:19 +01:00
errorlogger.h avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
errortypes.cpp added some missing copyright headers (#3758) 2022-01-26 19:02:20 +01:00
errortypes.h avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
exprengine.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
exprengine.h avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
forwardanalyzer.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
forwardanalyzer.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
importproject.cpp added an include-what-you-use GitHub Action (#3759) 2022-02-01 17:19:19 +01:00
importproject.h avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
infer.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
infer.h avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
lib.pri Refactor: Use interval analysis for symbolic values for inferCondtion (#3488) 2021-10-09 16:19:06 +02:00
library.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
library.h removed or annotated some code which is only used in test code (#3656) 2022-01-03 12:40:20 +01:00
matchcompiler.h Update copyright year 2021-09-26 11:34:56 +02:00
mathlib.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
mathlib.h removed or annotated some code which is only used in test code (#3656) 2022-01-03 12:40:20 +01:00
path.cpp feat: add support for .ipp and .ixx extensions (#3383) 2021-08-09 10:46:56 +02:00
path.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
pathanalysis.cpp added an include-what-you-use GitHub Action (#3759) 2022-02-01 17:19:19 +01:00
pathanalysis.h avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
pathmatch.cpp added some missing copyright headers (#3758) 2022-01-26 19:02:20 +01:00
pathmatch.h added some more missing copyright headers (#3766) 2022-01-28 15:56:11 +01:00
pcrerules.pri
platform.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
platform.h Update copyright year 2021-09-26 11:34:56 +02:00
precompiled.h added some missing copyright headers (#3758) 2022-01-26 19:02:20 +01:00
preprocessor.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
preprocessor.h fixed some unusedFunction warnings (#3618) 2022-01-04 15:48:08 +01:00
programmemory.cpp added an include-what-you-use GitHub Action (#3759) 2022-02-01 17:19:19 +01:00
programmemory.h added some missing copyright headers (#3758) 2022-01-26 19:02:20 +01:00
reverseanalyzer.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
reverseanalyzer.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
settings.cpp Fix member shadowing (#3563) 2021-11-15 20:37:08 +01:00
settings.h avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
standards.h added some missing copyright headers (#3758) 2022-01-26 19:02:20 +01:00
summaries.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
summaries.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
suppressions.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
suppressions.h avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
symboldatabase.cpp Fix #10091 FP shadowFunction with default destructor implementation / Tests for #8635, #9776, #9940, #9951, #10018 (#3763) 2022-02-02 19:30:49 +01:00
symboldatabase.h avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
templatesimplifier.cpp added an include-what-you-use GitHub Action (#3759) 2022-02-01 17:19:19 +01:00
templatesimplifier.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
timer.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
timer.h Update copyright year 2021-09-26 11:34:56 +02:00
token.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
token.h avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
tokenize.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
tokenize.h avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
tokenlist.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
tokenlist.h avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
tokenrange.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
utils.cpp avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
utils.h Implement support for passing multiple file filters (#3479) 2021-11-23 22:51:45 +01:00
valueflow.cpp Fix 10768: performance regression (#3788) 2022-02-02 13:01:44 +01:00
valueflow.h avoid dependency on transitive includes - based on include-what-you-use (#3757) 2022-01-27 19:03:20 +01:00
valueptr.h Update copyright year 2021-09-26 11:34:56 +02:00
version.h 2.6 dev: set version 2021-10-02 13:15:12 +02:00
version.rc