cppcheck/lib
Oliver Stöneberg 91070ca794
utils.h: added `startsWith()` and started using it (#5381)
This makes the code much more readable. It also makes it less prone to
errors because we do not need to specify the length of the string to
match and the returnvalue is clear.

The code with the bad returnvalue check was never executed and I added a
test to show that.
2023-09-08 19:30:25 +02:00
..
CMakeLists.txt fixed/suppressed several compiler warnings (#5327) 2023-08-16 19:35:53 +02:00
analyzer.h enabled and mitigated `modernize-use-equals-default` clang-tidy warnings / removed unnecessary default destructors (#5335) 2023-08-16 17:13:36 +02:00
analyzerinfo.cpp avoid some unchecked pointer dereferences (#4811) 2023-03-02 22:05:41 +01:00
analyzerinfo.h avoid some unchecked pointer dereferences (#4811) 2023-03-02 22:05:41 +01:00
astutils.cpp utils.h: added `startsWith()` and started using it (#5381) 2023-09-08 19:30:25 +02:00
astutils.h Fix 11898: FP knownEmptyContainer (#5394) 2023-09-02 14:30:35 +02:00
calculate.h Update copyright year 2023-09-06 15:51:05 +02:00
check.cpp Partial fix for #11897 (Safety: show what checks are enabled/disabled) (#5372) 2023-08-29 12:00:52 +02:00
check.h Partial fix for #11897 (Safety: show what checks are enabled/disabled) (#5372) 2023-08-29 12:00:52 +02:00
check64bit.cpp Update copyright year 2023-09-06 15:51:05 +02:00
check64bit.h Update copyright year 2023-09-06 15:51:05 +02:00
checkassert.cpp Partial fix for #11897 (Safety: show what checks are enabled/disabled) (#5372) 2023-08-29 12:00:52 +02:00
checkassert.h Update copyright year 2023-09-06 15:51:05 +02:00
checkautovariables.cpp Partial fix for #11897 (Safety: show what checks are enabled/disabled) (#5372) 2023-08-29 12:00:52 +02:00
checkautovariables.h removed unnecessary `Settings` parameter from `Check::runChecks()` and made `Tokenizer` a reference (#5308) 2023-08-18 12:03:50 +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 removed unnecessary `Settings` parameter from `Check::runChecks()` and made `Tokenizer` a reference (#5308) 2023-08-18 12:03:50 +02:00
checkboost.cpp Update copyright year 2023-09-06 15:51:05 +02:00
checkboost.h Update copyright year 2023-09-06 15:51:05 +02:00
checkbufferoverrun.cpp Partial fix for #11897 (Safety: show what checks are enabled/disabled) (#5372) 2023-08-29 12:00:52 +02:00
checkbufferoverrun.h removed unnecessary `Settings` parameter from `Check::runChecks()` and made `Tokenizer` a reference (#5308) 2023-08-18 12:03:50 +02:00
checkclass.cpp Fixed #11907 (False positive: uninitialized member (mutable member, const method call)) (#5384) 2023-09-01 18:10:21 +02:00
checkclass.h removed unnecessary `Settings` parameter from `Check::runChecks()` and made `Tokenizer` a reference (#5308) 2023-08-18 12:03:50 +02:00
checkcondition.cpp Partial fix for #11897 (Safety: show what checks are enabled/disabled) (#5372) 2023-08-29 12:00:52 +02:00
checkcondition.h Fix 11579: false negative: knownConditionTrueFalse with non-bool as bool parameter (#5349) 2023-08-20 22:32:41 +02:00
checkers.h Ticket #11897. Write Autosar/Cert C/Cert C++/Misra C++ in the checkers report also. (#5400) 2023-09-03 20:42:09 +02:00
checkersreport.cpp Ticket #11897. Write Autosar/Cert C/Cert C++/Misra C++ in the checkers report also. (#5400) 2023-09-03 20:42:09 +02:00
checkersreport.h Fix #11897 (Safety: show what checks are enabled/disabled) (#5378) 2023-08-31 18:28:47 +02:00
checkexceptionsafety.cpp Partial fix for #11897 (Safety: show what checks are enabled/disabled) (#5372) 2023-08-29 12:00:52 +02:00
checkexceptionsafety.h removed unnecessary `Settings` parameter from `Check::runChecks()` and made `Tokenizer` a reference (#5308) 2023-08-18 12:03:50 +02:00
checkfunctions.cpp Partial fix for #11897 (Safety: show what checks are enabled/disabled) (#5372) 2023-08-29 12:00:52 +02:00
checkfunctions.h removed unnecessary `Settings` parameter from `Check::runChecks()` and made `Tokenizer` a reference (#5308) 2023-08-18 12:03:50 +02:00
checkinternal.cpp Enable and mitigate readability-else-after-return (#5175) 2023-06-20 18:43:21 +02:00
checkinternal.h removed unnecessary `Settings` parameter from `Check::runChecks()` and made `Tokenizer` a reference (#5308) 2023-08-18 12:03:50 +02:00
checkio.cpp Partial fix for #11897 (Safety: show what checks are enabled/disabled) (#5372) 2023-08-29 12:00:52 +02:00
checkio.h removed unnecessary `Settings` parameter from `Check::runChecks()` and made `Tokenizer` a reference (#5308) 2023-08-18 12:03:50 +02:00
checkleakautovar.cpp utils.h: added `startsWith()` and started using it (#5381) 2023-09-08 19:30:25 +02:00
checkleakautovar.h removed unnecessary `Settings` parameter from `Check::runChecks()` and made `Tokenizer` a reference (#5308) 2023-08-18 12:03:50 +02:00
checkmemoryleak.cpp Partial fix for #11897 (Safety: show what checks are enabled/disabled) (#5372) 2023-08-29 12:00:52 +02:00
checkmemoryleak.h Partial fix for #11897 (Safety: show what checks are enabled/disabled) (#5372) 2023-08-29 12:00:52 +02:00
checknullpointer.cpp Partial fix for #11897 (Safety: show what checks are enabled/disabled) (#5372) 2023-08-29 12:00:52 +02:00
checknullpointer.h removed unnecessary `Settings` parameter from `Check::runChecks()` and made `Tokenizer` a reference (#5308) 2023-08-18 12:03:50 +02:00
checkother.cpp Partial fix for #11927 FP knownArgument with unknown function type (#5413) 2023-09-08 16:41:07 +02:00
checkother.h Partial fix for #11897 (Safety: show what checks are enabled/disabled) (#5372) 2023-08-29 12:00:52 +02:00
checkpostfixoperator.cpp Update copyright year 2023-09-06 15:51:05 +02:00
checkpostfixoperator.h Update copyright year 2023-09-06 15:51:05 +02:00
checksizeof.cpp Partial fix for #11897 (Safety: show what checks are enabled/disabled) (#5372) 2023-08-29 12:00:52 +02:00
checksizeof.h removed unnecessary `Settings` parameter from `Check::runChecks()` and made `Tokenizer` a reference (#5308) 2023-08-18 12:03:50 +02:00
checkstl.cpp Partial fix for #11897 (Safety: show what checks are enabled/disabled) (#5372) 2023-08-29 12:00:52 +02:00
checkstl.h removed unnecessary `Settings` parameter from `Check::runChecks()` and made `Tokenizer` a reference (#5308) 2023-08-18 12:03:50 +02:00
checkstring.cpp Update copyright year 2023-09-06 15:51:05 +02:00
checkstring.h removed unnecessary `Settings` parameter from `Check::runChecks()` and made `Tokenizer` a reference (#5308) 2023-08-18 12:03:50 +02:00
checktype.cpp Partial fix for #11897 (Safety: show what checks are enabled/disabled) (#5372) 2023-08-29 12:00:52 +02:00
checktype.h removed unnecessary `Settings` parameter from `Check::runChecks()` and made `Tokenizer` a reference (#5308) 2023-08-18 12:03:50 +02:00
checkuninitvar.cpp Partial fix for #11897 (Safety: show what checks are enabled/disabled) (#5372) 2023-08-29 12:00:52 +02:00
checkuninitvar.h removed unnecessary `Settings` parameter from `Check::runChecks()` and made `Tokenizer` a reference (#5308) 2023-08-18 12:03:50 +02:00
checkunusedfunctions.cpp Partial fix for #11897 (Safety: show what checks are enabled/disabled) (#5372) 2023-08-29 12:00:52 +02:00
checkunusedfunctions.h removed unnecessary `Settings` parameter from `Check::runChecks()` and made `Tokenizer` a reference (#5308) 2023-08-18 12:03:50 +02:00
checkunusedvar.cpp utils.h: added `startsWith()` and started using it (#5381) 2023-09-08 19:30:25 +02:00
checkunusedvar.h removed unnecessary `Settings` parameter from `Check::runChecks()` and made `Tokenizer` a reference (#5308) 2023-08-18 12:03:50 +02:00
checkvaarg.cpp Partial fix for #11897 (Safety: show what checks are enabled/disabled) (#5372) 2023-08-29 12:00:52 +02:00
checkvaarg.h Update copyright year 2023-09-06 15:51:05 +02:00
clangimport.cpp utils.h: added `startsWith()` and started using it (#5381) 2023-09-08 19:30:25 +02:00
clangimport.h
color.cpp Update copyright year 2023-06-21 19:58:11 +02:00
color.h Update copyright year 2023-06-21 19:58:11 +02:00
config.h fixed/suppressed several compiler warnings (#5327) 2023-08-16 19:35:53 +02:00
cppcheck.cpp utils.h: added `startsWith()` and started using it (#5381) 2023-09-08 19:30:25 +02:00
cppcheck.h fixed/suppressed several compiler warnings (#5327) 2023-08-16 19:35:53 +02:00
cppcheck.natvis
cppcheck.vcxproj fixed #11910 - removed Visual Studio x86 targets from project files and builds from CI (#5397) 2023-09-04 19:40:13 +02:00
cppcheck.vcxproj.filters Fix #11897 (Safety: show what checks are enabled/disabled) (#5378) 2023-08-31 18:28:47 +02:00
ctu.cpp fixed #6316 (Use std::to_string() in place of MathLib::toString() ...) - deleted default implementation of `Mathlib::toString()` (#5341) 2023-08-17 16:46:32 +02:00
ctu.h enabled and mitigated `modernize-use-equals-default` clang-tidy warnings / removed unnecessary default destructors (#5335) 2023-08-16 17:13:36 +02:00
errorlogger.cpp utils.h: added `startsWith()` and started using it (#5381) 2023-09-08 19:30:25 +02:00
errorlogger.h report `internalError` when command execution returns errorcode / also some related cleanups and tests (#5037) 2023-08-31 13:33:29 +02:00
errortypes.cpp
errortypes.h removed `experimental` and `safe` from `Certainty` (#4819) 2023-03-12 14:15:29 +01:00
forwardanalyzer.cpp Unified checks for unevaluated context (#5362) 2023-08-23 12:07:47 +02:00
forwardanalyzer.h Update copyright year 2023-06-21 19:58:11 +02:00
fwdanalysis.cpp Fix #11139, #11817 FP unreadVariable (#5221) 2023-07-07 20:18:15 +02:00
fwdanalysis.h Use in-class initializers, default constructors, class -> struct (#4842) 2023-08-08 11:05:02 +02:00
importproject.cpp utils.h: added `startsWith()` and started using it (#5381) 2023-09-08 19:30:25 +02:00
importproject.h Use in-class initializers, default constructors, class -> struct (#4842) 2023-08-08 11:05:02 +02:00
infer.cpp Enable and mitigate readability-else-after-return (#5175) 2023-06-20 18:43:21 +02:00
infer.h enabled and mitigated `modernize-use-equals-default` clang-tidy warnings / removed unnecessary default destructors (#5335) 2023-08-16 17:13:36 +02:00
json.h fixed/suppressed several compiler warnings (#5327) 2023-08-16 19:35:53 +02:00
keywords.cpp fixed/suppressed several compiler warnings (#5327) 2023-08-16 19:35:53 +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 Fix #11897 (Safety: show what checks are enabled/disabled) (#5378) 2023-08-31 18:28:47 +02:00
library.cpp utils.h: added `startsWith()` and started using it (#5381) 2023-09-08 19:30:25 +02:00
library.h optimized `Library::detectContainerInternal()` a bit (#5333) 2023-08-16 11:10:38 +02:00
matchcompiler.h Update copyright year 2023-09-06 15:51:05 +02:00
mathlib.cpp fixed #6316 (Use std::to_string() in place of MathLib::toString() ...) - deleted default implementation of `Mathlib::toString()` (#5341) 2023-08-17 16:46:32 +02:00
mathlib.h fixed #6316 (Use std::to_string() in place of MathLib::toString() ...) - deleted default implementation of `Mathlib::toString()` (#5341) 2023-08-17 16:46:32 +02:00
path.cpp utils.h: added `startsWith()` and started using it (#5381) 2023-09-08 19:30:25 +02:00
path.h got rid of duplicated file/directory existence implementations / improved errorhandling and testing of `FileLister` (#5350) 2023-08-23 11:22:41 +02:00
pathanalysis.cpp Enable and mitigate readability-else-after-return (#5175) 2023-06-20 18:43:21 +02:00
pathanalysis.h Update copyright year 2023-06-21 19:58:11 +02:00
pathmatch.cpp
pathmatch.h
pcrerules.pri
platform.cpp made `Platform` a member of `Settings` instead of inheriting from it / cleanups (#4791) 2023-03-03 18:36:27 +01:00
platform.h made `Platform` a member of `Settings` instead of inheriting from it / cleanups (#4791) 2023-03-03 18:36:27 +01:00
precompiled.h Update copyright year 2023-06-21 19:58:11 +02:00
preprocessor.cpp utils.h: added `startsWith()` and started using it (#5381) 2023-09-08 19:30:25 +02:00
preprocessor.h Update copyright year 2023-06-21 19:58:11 +02:00
programmemory.cpp Use in-class initializers, default constructors, class -> struct (#4842) 2023-08-08 11:05:02 +02:00
programmemory.h fixed some CLion inspection warnings (#4688) 2023-04-28 16:02:41 +02:00
reverseanalyzer.cpp Unified checks for unevaluated context (#5362) 2023-08-23 12:07:47 +02:00
reverseanalyzer.h Update copyright year 2023-06-21 19:58:11 +02:00
settings.cpp got rid of duplicated file/directory existence implementations / improved errorhandling and testing of `FileLister` (#5350) 2023-08-23 11:22:41 +02:00
settings.h Partial fix for #11897 (Safety: show what checks are enabled/disabled) (#5372) 2023-08-29 12:00:52 +02:00
smallvector.h Add missing rebinding trait to TaggedAllocator (complete #5015) (#5146) 2023-06-13 11:22:43 +02:00
sourcelocation.h
standards.h Update copyright year 2023-09-06 15:51:05 +02:00
summaries.cpp fixed and enabled `performance-faster-string-find` clang-tidy warning (#4769) 2023-02-08 21:01:51 +01:00
summaries.h
suppressions.cpp utils.h: added `startsWith()` and started using it (#5381) 2023-09-08 19:30:25 +02:00
suppressions.h moved suppression-specific code out of `ErrorLogger` (#5329) 2023-08-18 11:55:23 +02:00
symboldatabase.cpp utils.h: added `startsWith()` and started using it (#5381) 2023-09-08 19:30:25 +02:00
symboldatabase.h utils.h: added `startsWith()` and started using it (#5381) 2023-09-08 19:30:25 +02:00
templatesimplifier.cpp Fix #10837 crash/hang in expandTemplate (#5410) 2023-09-08 14:59:42 +02:00
templatesimplifier.h enabled and mitigated `modernize-use-equals-default` clang-tidy warnings / removed unnecessary default destructors (#5335) 2023-08-16 17:13:36 +02:00
timer.cpp utils.h: added `startsWith()` and started using it (#5381) 2023-09-08 19:30:25 +02:00
timer.h enabled and mitigated `modernize-use-equals-default` clang-tidy warnings / removed unnecessary default destructors (#5335) 2023-08-16 17:13:36 +02:00
token.cpp Refactor: The code to generate id string from pointer can be simplified (#5382) 2023-08-31 23:14:28 +02:00
token.h Fixed #11901 (Performance regression: large array with strings) (#5375) 2023-08-30 19:35:43 +02:00
tokenize.cpp utils.h: added `startsWith()` and started using it (#5381) 2023-09-08 19:30:25 +02:00
tokenize.h Use in-class initializers, default constructors, class -> struct (#4842) 2023-08-08 11:05:02 +02:00
tokenlist.cpp Fix #11579 FN knownConditionTrueFalse with non-bool as bool parameter / #9450 string literal to bool conversion in function call (#5338) 2023-08-18 10:32:52 +02:00
tokenlist.h Use in-class initializers, default constructors, class -> struct (#4842) 2023-08-08 11:05:02 +02:00
tokenrange.h
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 utils.h: added `startsWith()` and started using it (#5381) 2023-09-08 19:30:25 +02:00
valueflow.cpp utils.h: added `startsWith()` and started using it (#5381) 2023-09-08 19:30:25 +02: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 lib/version.h: add fix version option (#5216) 2023-07-02 18:13:28 +02:00
version.rc
vfvalue.cpp fixed #6316 (Use std::to_string() in place of MathLib::toString() ...) - deleted default implementation of `Mathlib::toString()` (#5341) 2023-08-17 16:46:32 +02:00
vfvalue.h Use in-class initializers, default constructors, class -> struct (#4842) 2023-08-08 11:05:02 +02:00