cppcheck/lib
Oliver Stöneberg 1f2b49142e
extracted single job execution into `SingleExecutor` / improved testing / do not unconditionally apply colors to output (#4882)
* added `Settings::useSingleJob()` and use it instead of checking `jobs` or `jointSuppressionReport`

* extracted single job execution into `SingleExecutor`

* moved `reportStatus()` from `CppCheckExecutor` to Èxecutor

* TestSingleExecutor: improved tests

* added testing of markup extension handling in executors

* cleaned up includes based on `include-what-you-use`

* testsingleexecutor.cpp: suppress `performance-unnecessary-value-param` clang-tidy warnings

* ProcessExecutor: send color via pipe instead of applying it beforehand

* do not unconditionally apply colors to output / disable all colors in tests / adjusted tests for changed output behavior

* fixed precision loss in `Executor::reportStatus()`

* fixed `naming-varname` selfcheck warnings
2023-04-08 18:06:38 +02:00
..
CMakeLists.txt added CMake option `BUILD_CORE_DLL` to build lib as `cppcheck-core.dll` with Visual Studio (#4733) 2023-01-26 22:13:07 +01:00
analyzer.h fixed some `-Wdeprecated-copy-dtor` Clang compiler warnings (#4836) 2023-03-02 21:02:29 +01: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 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
astutils.h Fix autoNoType with std::begin() / function returning smart ptr (#4919) 2023-04-01 09:38:40 +02:00
calculate.h
check.cpp cleaned up includes based on `include-what-you-use` (#4599) 2023-03-02 21:50:14 +01:00
check.h Update copyright year 2023-01-28 10:16:34 +01:00
check64bit.cpp
check64bit.h
checkassert.cpp Update copyright year 2023-01-28 10:16:34 +01:00
checkassert.h
checkautovariables.cpp cleaned up includes based on `include-what-you-use` (#4599) 2023-03-02 21:50:14 +01:00
checkautovariables.h Update copyright year 2023-01-28 10:16:34 +01:00
checkbool.cpp Update copyright year 2023-01-28 10:16:34 +01:00
checkbool.h Update copyright year 2023-01-28 10:16:34 +01:00
checkboost.cpp
checkboost.h
checkbufferoverrun.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
checkbufferoverrun.h Update copyright year 2023-01-28 10:16:34 +01:00
checkclass.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
checkclass.h Update copyright year 2023-01-28 10:16:34 +01:00
checkcondition.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
checkcondition.h Update copyright year 2023-01-28 10:16:34 +01:00
checkexceptionsafety.cpp cleaned up includes based on `include-what-you-use` (#4599) 2023-03-02 21:50:14 +01:00
checkexceptionsafety.h cleaned up includes based on `include-what-you-use` (#4599) 2023-03-02 21:50:14 +01:00
checkfunctions.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
checkfunctions.h Update copyright year 2023-01-28 10:16:34 +01:00
checkinternal.cpp cleaned up includes based on `include-what-you-use` (#4599) 2023-03-02 21:50:14 +01:00
checkinternal.h Update copyright year 2023-01-28 10:16:34 +01:00
checkio.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
checkio.h Update copyright year 2023-01-28 10:16:34 +01:00
checkleakautovar.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
checkleakautovar.h Fix #9279 Missing --check-library warning when memory leaks check assumes function is noreturn (#4937) 2023-04-06 18:44:03 +02:00
checkmemoryleak.cpp avoid some unchecked pointer dereferences (#4811) 2023-03-02 22:05:41 +01:00
checkmemoryleak.h Fix #11499 FN functionConst with operator usage (#4722) 2023-03-02 21:51:58 +01:00
checknullpointer.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
checknullpointer.h Update copyright year 2023-01-28 10:16:34 +01:00
checkother.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
checkother.h Update copyright year 2023-01-28 10:16:34 +01:00
checkpostfixoperator.cpp
checkpostfixoperator.h
checksizeof.cpp cleaned up includes based on `include-what-you-use` (#4599) 2023-03-02 21:50:14 +01:00
checksizeof.h Update copyright year 2023-01-28 10:16:34 +01:00
checkstl.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
checkstl.h Update copyright year 2023-01-28 10:16:34 +01:00
checkstring.cpp
checkstring.h Update copyright year 2023-01-28 10:16:34 +01:00
checktype.cpp SymbolDatabase: made `mTokenizer` and `mSettings` references (#4857) 2023-03-07 12:22:06 +01:00
checktype.h avoid some unchecked pointer dereferences (#4811) 2023-03-02 22:05:41 +01:00
checkuninitvar.cpp Enable and mitigate readability-simplify-boolean-expr (#4897) 2023-03-17 13:51:55 +01:00
checkuninitvar.h Update copyright year 2023-01-28 10:16:34 +01:00
checkunusedfunctions.cpp extracted single job execution into `SingleExecutor` / improved testing / do not unconditionally apply colors to output (#4882) 2023-04-08 18:06:38 +02:00
checkunusedfunctions.h Update copyright year 2023-01-28 10:16:34 +01:00
checkunusedvar.cpp Fix #11577 FN unusedStructMember when casting address (regression) (#4816) 2023-04-04 21:57:09 +02:00
checkunusedvar.h Update copyright year 2023-01-28 10:16:34 +01:00
checkvaarg.cpp Update copyright year 2023-01-28 10:16:34 +01:00
checkvaarg.h
clangimport.cpp SymbolDatabase: made `mTokenizer` and `mSettings` references (#4857) 2023-03-07 12:22:06 +01:00
clangimport.h LCppC backports: Refactorizations/Optimizations (#4204) 2022-08-21 17:21:02 +02:00
color.cpp extracted single job execution into `SingleExecutor` / improved testing / do not unconditionally apply colors to output (#4882) 2023-04-08 18:06:38 +02:00
color.h extracted single job execution into `SingleExecutor` / improved testing / do not unconditionally apply colors to output (#4882) 2023-04-08 18:06:38 +02:00
config.h Update copyright year 2023-01-28 10:16:34 +01:00
cppcheck.cpp extracted single job execution into `SingleExecutor` / improved testing / do not unconditionally apply colors to output (#4882) 2023-04-08 18:06:38 +02:00
cppcheck.h extracted single job execution into `SingleExecutor` / improved testing / do not unconditionally apply colors to output (#4882) 2023-04-08 18:06:38 +02:00
cppcheck.natvis added .gitattributes and normalized files (#4668) 2022-12-30 21:33:45 +01:00
cppcheck.vcxproj added clean C/C++ keyword lists and use them in `TokenList` (#3774) 2023-02-24 21:43:27 +01:00
cppcheck.vcxproj.filters extracted `ValueFlow::Value` to `vfvalue.{cpp|h}` (#4642) 2023-01-26 22:23:22 +01:00
ctu.cpp Fix ctuuninitvar false positive for struct that is partly initialized 2023-03-13 20:55:11 +01:00
ctu.h fixed some `-Wdeprecated-copy-dtor` Clang compiler warnings (#4836) 2023-03-02 21:02:29 +01:00
errorlogger.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
errorlogger.h removed unused `ErrorLogger::reportInfo()` / small `*Executor` cleanup (#4852) 2023-03-04 17:29:34 +01:00
errortypes.cpp
errortypes.h removed `experimental` and `safe` from `Certainty` (#4819) 2023-03-12 14:15:29 +01:00
forwardanalyzer.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
forwardanalyzer.h made `ForwardTraversal::mSettings` and `ReverseTraversal::mSettings` references / adjusted some calling code to use references as well (#4858) 2023-03-07 12:26:17 +01:00
fwdanalysis.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
fwdanalysis.h Update copyright year 2023-01-28 10:16:34 +01:00
importproject.cpp Fix FN passedByValue with array access, range-based for (#4922) 2023-03-30 07:24:23 +02:00
importproject.h Fix FN passedByValue with array access, range-based for (#4922) 2023-03-30 07:24:23 +02:00
infer.cpp Fix 11610: false negative: knownConditionTrueFalse with address of variable (#4883) 2023-03-12 19:57:11 +01:00
infer.h fixed some `-Wdeprecated-copy-dtor` Clang compiler warnings (#4836) 2023-03-02 21:02:29 +01:00
keywords.cpp keywords.cpp: fixed accidental omissions in C++03 keywords / added missing keywords in latest standards (#4825) 2023-02-25 00:19:04 +01: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 added clean C/C++ keyword lists and use them in `TokenList` (#3774) 2023-02-24 21:43:27 +01:00
library.cpp Fix autoNoType with std::begin() / function returning smart ptr (#4919) 2023-04-01 09:38:40 +02:00
library.h extracted single job execution into `SingleExecutor` / improved testing / do not unconditionally apply colors to output (#4882) 2023-04-08 18:06:38 +02:00
matchcompiler.h
mathlib.cpp cleaned up includes based on `include-what-you-use` (#4599) 2023-03-02 21:50:14 +01:00
mathlib.h
path.cpp Enable and mitigate readability-simplify-boolean-expr (#4897) 2023-03-17 13:51:55 +01:00
path.h Revert "improved `Path` handling of mixed separators (#4808)" 2023-02-24 06:21:02 +01:00
pathanalysis.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
pathanalysis.h
pathmatch.cpp Update copyright year 2023-01-28 10:16:34 +01:00
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 cleaned up includes based on `include-what-you-use` (#4599) 2023-03-02 21:50:14 +01:00
preprocessor.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
preprocessor.h Preprocessor: provide suppressions separately from settings (#4878) 2023-03-09 20:15:53 +01:00
programmemory.cpp ValueFlow: Evaluate if statement for function returns (#4908) 2023-03-24 13:31:26 +01:00
programmemory.h 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
reverseanalyzer.cpp Fix #11627 Infinite loop in ReverseTraversal (#4916) 2023-03-30 07:22:41 +02:00
reverseanalyzer.h made `ForwardTraversal::mSettings` and `ReverseTraversal::mSettings` references / adjusted some calling code to use references as well (#4858) 2023-03-07 12:26:17 +01:00
settings.cpp extracted single job execution into `SingleExecutor` / improved testing / do not unconditionally apply colors to output (#4882) 2023-04-08 18:06:38 +02:00
settings.h extracted single job execution into `SingleExecutor` / improved testing / do not unconditionally apply colors to output (#4882) 2023-04-08 18:06:38 +02:00
smallvector.h Update copyright year 2023-01-28 10:16:34 +01:00
sourcelocation.h Update copyright year 2023-01-28 10:16:34 +01:00
standards.h
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 optimized suppression lookups a bit when no suppressions exist (#4839) 2023-03-03 18:37:09 +01:00
suppressions.h 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
symboldatabase.cpp Fix #11599 false negative: constParameter (#4902) 2023-04-02 20:36:23 +02:00
symboldatabase.h 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
templatesimplifier.cpp split `templateInstantiation` from `debug` warnings (#4933) 2023-04-08 16:50:11 +02:00
templatesimplifier.h Fix remaining example from #11599, FN #11646, fix crash (#4929) 2023-04-06 18:46:45 +02:00
timer.cpp simplified `ThreadExecutor` class by moving some code out of it / fixed some thread safety issues (#4849) 2023-03-04 12:05:17 +01: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 Fix autoNoType with std::begin() / function returning smart ptr (#4919) 2023-04-01 09:38:40 +02:00
token.h avoid some unchecked pointer dereferences (#4811) 2023-03-02 22:05:41 +01:00
tokenize.cpp Fix #11634 Crash in TypedefSimplifier (#4938) 2023-04-07 11:09:13 +02:00
tokenize.h Fix #11634 Crash in TypedefSimplifier (#4938) 2023-04-07 11:09:13 +02:00
tokenlist.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
tokenlist.h Partial fix for #11378 internalAstError regressions (iscpp11init) (#4889) 2023-03-13 16:30:27 +01: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 Update copyright year 2023-01-28 10:16:34 +01:00
valueflow.cpp --performance-valueflow-max-if-count: review comments 2023-04-08 13:07:28 +02:00
valueflow.h avoid some unchecked pointer dereferences (#4811) 2023-03-02 22:05:41 +01:00
valueptr.h enabled and fixed `performance-noexcept-move-constructor` clang-tidy warnings (#4864) 2023-03-07 12:24:01 +01:00
version.h bumped version to 2.11 (#4751) 2023-01-29 15:18:22 +01:00
version.rc added .gitattributes and normalized files (#4668) 2022-12-30 21:33:45 +01:00
vfvalue.cpp Update copyright year 2023-01-28 10:16:34 +01:00
vfvalue.h Update copyright year 2023-01-28 10:16:34 +01:00