cppcheck/lib
Johan Bertrand 44ab976451
Inline suppression for block of code or whole file (#5402)
Added new suppress comments:
- `cppcheck-suppress-begin` and `cppcheck-suppress-end` to remove blocks
of suppression
- `cppcheck-suppress-file` to remove suppression at file level

The suppressions do not interfere with each others. For example, all the
suppressions are matched in the following code:

```c
// cppcheck-suppress-file uninitvar
void f() {
    int a;
    // cppcheck-suppress-begin uninitvar
    // cppcheck-suppress uninitvar
    a++;
    // cppcheck-suppress-end uninitvar
}
```

Tickets:
https://trac.cppcheck.net/ticket/11902
https://trac.cppcheck.net/ticket/8528
2023-10-13 12:45:13 +02:00
..
CMakeLists.txt fixed #11925 (build slowest files first) (#5419) 2023-09-11 20:22:07 +02:00
addoninfo.cpp cleaned up includes based on include-what-you-use (#5532) 2023-10-09 10:07:20 +02:00
addoninfo.h generate `AddonInfo` only once (#4958) 2023-10-08 21:28:57 +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 Fix #12036 FN knownConditionTrueFalse comparing enum with number (#5510) 2023-10-05 18:15:18 +02:00
astutils.h cleaned up includes based on include-what-you-use (#5532) 2023-10-09 10:07:20 +02:00
calculate.h Update copyright year 2023-09-06 15:51:05 +02:00
check.cpp removed unnecessary encapsulation of severity enum and made it an `enum class` (#5541) 2023-10-12 11:58:39 +02:00
check.h removed unnecessary encapsulation of severity enum and made it an `enum class` (#5541) 2023-10-12 11:58:39 +02:00
check64bit.cpp fixed some "Declarator is never used" Rider warnings (#5535) 2023-10-09 18:06:35 +02:00
check64bit.h cleaned up access of the check classes (#5387) 2023-09-11 11:12:42 +02:00
checkassert.cpp fixed "Redundant elaborated type specifier" Rider warnings (#5517) 2023-10-08 09:10:17 +02:00
checkassert.h adjusted tests to reduce the amount of `friend` declarations necessary (#5435) 2023-09-11 20:26:22 +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 adjusted tests to reduce the amount of `friend` declarations necessary (#5435) 2023-09-11 20:26:22 +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 adjusted tests to reduce the amount of `friend` declarations necessary (#5435) 2023-09-11 20:26:22 +02:00
checkboost.cpp Update copyright year 2023-09-06 15:51:05 +02:00
checkboost.h adjusted tests to reduce the amount of `friend` declarations necessary (#5435) 2023-09-11 20:26:22 +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 adjusted tests to reduce the amount of `friend` declarations necessary (#5435) 2023-09-11 20:26:22 +02:00
checkclass.cpp cleaned up includes based on include-what-you-use (#5532) 2023-10-09 10:07:20 +02:00
checkclass.h cleaned up access of the check classes (#5387) 2023-09-11 11:12:42 +02:00
checkcondition.cpp fixed "Redundant elaborated type specifier" Rider warnings (#5517) 2023-10-08 09:10:17 +02:00
checkcondition.h adjusted tests to reduce the amount of `friend` declarations necessary (#5435) 2023-09-11 20:26:22 +02:00
checkers.cpp Fix #12029 (Fix definitions of global constants) (#5504) 2023-10-02 20:32:51 +02:00
checkers.h Fix #12029 (Fix definitions of global constants) (#5504) 2023-10-02 20:32:51 +02:00
checkersreport.cpp cleaned up includes based on include-what-you-use (#5532) 2023-10-09 10:07:20 +02:00
checkersreport.h cleaned up includes based on include-what-you-use (#5532) 2023-10-09 10:07:20 +02:00
checkexceptionsafety.cpp fixed "Redundant elaborated type specifier" Rider warnings (#5517) 2023-10-08 09:10:17 +02:00
checkexceptionsafety.h adjusted tests to reduce the amount of `friend` declarations necessary (#5435) 2023-09-11 20:26:22 +02:00
checkfunctions.cpp MathLib: renamed `to{U}LongNumber()` to `toBig{U}Number()` (#5503) 2023-10-05 19:21:42 +02:00
checkfunctions.h adjusted tests to reduce the amount of `friend` declarations necessary (#5435) 2023-09-11 20:26:22 +02:00
checkinternal.cpp Enable and mitigate readability-else-after-return (#5175) 2023-06-20 18:43:21 +02:00
checkinternal.h adjusted tests to reduce the amount of `friend` declarations necessary (#5435) 2023-09-11 20:26:22 +02:00
checkio.cpp removed unnecessary encapsulation of severity enum and made it an `enum class` (#5541) 2023-10-12 11:58:39 +02:00
checkio.h removed unnecessary encapsulation of severity enum and made it an `enum class` (#5541) 2023-10-12 11:58:39 +02:00
checkleakautovar.cpp MathLib: renamed `to{U}LongNumber()` to `toBig{U}Number()` (#5503) 2023-10-05 19:21:42 +02:00
checkleakautovar.h adjusted tests to reduce the amount of `friend` declarations necessary (#5435) 2023-09-11 20:26:22 +02:00
checkmemoryleak.cpp removed unnecessary encapsulation of severity enum and made it an `enum class` (#5541) 2023-10-12 11:58:39 +02:00
checkmemoryleak.h removed unnecessary encapsulation of severity enum and made it an `enum class` (#5541) 2023-10-12 11:58:39 +02:00
checknullpointer.cpp fixed "Redundant elaborated type specifier" Rider warnings (#5517) 2023-10-08 09:10:17 +02:00
checknullpointer.h adjusted tests to reduce the amount of `friend` declarations necessary (#5435) 2023-09-11 20:26:22 +02:00
checkother.cpp fixed "Redundant elaborated type specifier" Rider warnings (#5517) 2023-10-08 09:10:17 +02:00
checkother.h adjusted tests to reduce the amount of `friend` declarations necessary (#5435) 2023-09-11 20:26:22 +02:00
checkpostfixoperator.cpp fixed "Redundant elaborated type specifier" Rider warnings (#5517) 2023-10-08 09:10:17 +02:00
checkpostfixoperator.h cleaned up access of the check classes (#5387) 2023-09-11 11:12:42 +02:00
checksizeof.cpp fixed some "Declarator is never used" Rider warnings (#5535) 2023-10-09 18:06:35 +02:00
checksizeof.h adjusted tests to reduce the amount of `friend` declarations necessary (#5435) 2023-09-11 20:26:22 +02:00
checkstl.cpp Fix #12064 FP useStlAlgorithm with loop over initializer list (#5542) 2023-10-12 10:06:52 +02:00
checkstl.h adjusted tests to reduce the amount of `friend` declarations necessary (#5435) 2023-09-11 20:26:22 +02:00
checkstring.cpp fixed "Redundant elaborated type specifier" Rider warnings (#5517) 2023-10-08 09:10:17 +02:00
checkstring.h adjusted tests to reduce the amount of `friend` declarations necessary (#5435) 2023-09-11 20:26:22 +02:00
checktype.cpp removed unnecessary encapsulation of severity enum and made it an `enum class` (#5541) 2023-10-12 11:58:39 +02:00
checktype.h adjusted tests to reduce the amount of `friend` declarations necessary (#5435) 2023-09-11 20:26:22 +02:00
checkuninitvar.cpp Partial fix #12030 (False positive: uninitialized variable, conditional modification, flag) (#5543) 2023-10-12 13:56:47 +02:00
checkuninitvar.h Partial fix #12030 (False positive: uninitialized variable, conditional modification, flag) (#5543) 2023-10-12 13:56:47 +02:00
checkunusedfunctions.cpp fixed "Redundant elaborated type specifier" Rider warnings (#5517) 2023-10-08 09:10:17 +02:00
checkunusedfunctions.h fixed #11483 (FN unusedFunction for method with inline implementation) (#5457) 2023-09-20 14:45:44 +02:00
checkunusedvar.cpp fixed "Redundant elaborated type specifier" Rider warnings (#5517) 2023-10-08 09:10:17 +02:00
checkunusedvar.h cleaned up access of the check classes (#5387) 2023-09-11 11:12:42 +02:00
checkvaarg.cpp cleaned up includes based on include-what-you-use (#5532) 2023-10-09 10:07:20 +02:00
checkvaarg.h adjusted tests to reduce the amount of `friend` declarations necessary (#5435) 2023-09-11 20:26:22 +02:00
clangimport.cpp MathLib: renamed `to{U}LongNumber()` to `toBig{U}Number()` (#5503) 2023-10-05 19:21:42 +02:00
clangimport.h LCppC backports: Refactorizations/Optimizations (#4204) 2022-08-21 17:21:02 +02:00
color.cpp do not pass POD types by reference (based on clazy `function-args-by-value` check) (#5388) 2023-09-11 20:40:39 +02:00
color.h do not pass POD types by reference (based on clazy `function-args-by-value` check) (#5388) 2023-09-11 20:40:39 +02:00
config.h fixed/suppressed several compiler warnings (#5327) 2023-08-16 19:35:53 +02:00
cppcheck.cpp removed unnecessary encapsulation of severity enum and made it an `enum class` (#5541) 2023-10-12 11:58:39 +02:00
cppcheck.h cleaned up includes based on include-what-you-use (#5532) 2023-10-09 10:07:20 +02:00
cppcheck.natvis added .gitattributes and normalized files (#4668) 2022-12-30 21:33:45 +01:00
cppcheck.vcxproj generate `AddonInfo` only once (#4958) 2023-10-08 21:28:57 +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 removed unnecessary encapsulation of severity enum and made it an `enum class` (#5541) 2023-10-12 11:58:39 +02:00
errorlogger.h removed unnecessary encapsulation of severity enum and made it an `enum class` (#5541) 2023-10-12 11:58:39 +02:00
errortypes.cpp removed unnecessary encapsulation of severity enum and made it an `enum class` (#5541) 2023-10-12 11:58:39 +02:00
errortypes.h removed unnecessary encapsulation of severity enum and made it an `enum class` (#5541) 2023-10-12 11:58:39 +02:00
findtoken.h Fix 11983: False positive: uninitialized variable (#5443) 2023-09-13 23:27:08 +02: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 fixed "Redundant elaborated type specifier" Rider warnings (#5517) 2023-10-08 09:10:17 +02:00
fwdanalysis.h fixed "Redundant elaborated type specifier" Rider warnings (#5517) 2023-10-08 09:10:17 +02:00
importproject.cpp cleaned up includes based on include-what-you-use (#5532) 2023-10-09 10:07:20 +02:00
importproject.h refs #12022 - disallow multiple `--project` options (#5499) 2023-10-05 21:36:44 +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 mitigated several compiler warnings / suppress compiler warnings in CI where we don't care about them (#5497) 2023-10-09 12:25:56 +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 generate `AddonInfo` only once (#4958) 2023-10-08 21:28:57 +02:00
library.cpp removed unnecessary encapsulation of severity enum and made it an `enum class` (#5541) 2023-10-12 11:58:39 +02:00
library.h removed unnecessary encapsulation of severity enum and made it an `enum class` (#5541) 2023-10-12 11:58:39 +02:00
matchcompiler.h Update copyright year 2023-09-06 15:51:05 +02:00
mathlib.cpp MathLib: renamed `to{U}LongNumber()` to `toBig{U}Number()` (#5503) 2023-10-05 19:21:42 +02:00
mathlib.h MathLib: renamed `to{U}LongNumber()` to `toBig{U}Number()` (#5503) 2023-10-05 19:21:42 +02:00
path.cpp cleaned up includes based on include-what-you-use (#5532) 2023-10-09 10:07:20 +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 Update copyright year 2023-01-28 10:16:34 +01: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 fixed #11917 (Default to `native` platform in Windows builds) (#5428) 2023-09-11 11:08:23 +02: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 Inline suppression for block of code or whole file (#5402) 2023-10-13 12:45:13 +02:00
preprocessor.h Update copyright year 2023-06-21 19:58:11 +02:00
programmemory.cpp Fix 12030: False positive: uninitialized variable, conditional modification, flag (#5520) 2023-10-07 14:01:06 +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 removed unnecessary encapsulation of severity enum and made it an `enum class` (#5541) 2023-10-12 11:58:39 +02:00
settings.h removed unnecessary encapsulation of severity enum and made it an `enum class` (#5541) 2023-10-12 11:58:39 +02:00
smallvector.h Add missing rebinding trait to TaggedAllocator (complete #5015) (#5146) 2023-06-13 11:22:43 +02:00
sourcelocation.h Use intrinsics for source location if available (#5449) 2023-09-15 17:18:08 +02:00
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 Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
suppressions.cpp Inline suppression for block of code or whole file (#5402) 2023-10-13 12:45:13 +02:00
suppressions.h Inline suppression for block of code or whole file (#5402) 2023-10-13 12:45:13 +02:00
symboldatabase.cpp mitigated several compiler warnings / suppress compiler warnings in CI where we don't care about them (#5497) 2023-10-09 12:25:56 +02:00
symboldatabase.h Fix Cert C++ warnings reported by Cppcheck Premium (#5528) 2023-10-09 11:20:56 +02:00
templatesimplifier.cpp Fix Cert C++ warnings reported by Cppcheck Premium (#5528) 2023-10-09 11:20:56 +02:00
templatesimplifier.h Fix Cert C++ warnings reported by Cppcheck Premium (#5528) 2023-10-09 11:20:56 +02:00
timer.cpp fixed "Redundant elaborated type specifier" Rider warnings (#5517) 2023-10-08 09:10:17 +02:00
timer.h fixed "Redundant elaborated type specifier" Rider warnings (#5517) 2023-10-08 09:10:17 +02:00
token.cpp fixed "Redundant elaborated type specifier" Rider warnings (#5517) 2023-10-08 09:10:17 +02:00
token.h fixed #11483 (FN unusedFunction for method with inline implementation) (#5457) 2023-09-20 14:45:44 +02:00
tokenize.cpp removed unnecessary encapsulation of severity enum and made it an `enum class` (#5541) 2023-10-12 11:58:39 +02:00
tokenize.h removed unnecessary encapsulation of severity enum and made it an `enum class` (#5541) 2023-10-12 11:58:39 +02:00
tokenlist.cpp cleaned up includes based on include-what-you-use (#5532) 2023-10-09 10:07:20 +02:00
tokenlist.h fixed #11483 (FN unusedFunction for method with inline implementation) (#5457) 2023-09-20 14:45:44 +02: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 Inline suppression for block of code or whole file (#5402) 2023-10-13 12:45:13 +02:00
valueflow.cpp Fix #12052 FP: containerOutOfBounds (#5534) 2023-10-11 14:08:17 +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 2.12.99: Set versions (#5427) 2023-09-10 18:43:00 +02:00
version.rc added .gitattributes and normalized files (#4668) 2022-12-30 21:33:45 +01:00
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