Daniel Marjamäki
3bcbba598d
Fixed #10887 (compile database: include path with space is not handled)
2022-03-23 21:13:51 +01:00
Daniel Marjamäki
92316b07c8
Remove CERT addon from open source Cppcheck. The plan is to provide complete CERT C checking in Cppcheck Premium during this year.
2022-03-23 20:30:43 +01:00
Oliver Stöneberg
a0bab85bf9
ported GUI code from QRegExp to QRegularExpression ( #3785 )
2022-03-23 18:16:22 +01:00
chrchr-github
0d2af9a5b7
Fix #10880 FP constStatement with init list in function call ( #3929 )
2022-03-23 18:10:33 +01:00
Daniel Marjamäki
0725aa3f8b
Bump simplecpp
2022-03-23 18:04:31 +01:00
orbitcowboy
d376201cb4
gnu.cfg: Added support for getpw(). Ref.: https://man7.org/linux/man-pages/man3/getpw.3.html
2022-03-23 17:14:26 +01:00
Oliver Stöneberg
e7f97a9621
updated Z3 to 4.8.15 ( #3928 )
2022-03-23 12:47:01 +01:00
chrchr-github
e0830693c3
Fix FP uninitMemberVarPrivate with anonymous union ( #3927 )
2022-03-23 07:35:41 +01:00
chrchr-github
39567ea8c8
Fix #8541 FP variableScope (std::for_each with lambda) ( #3924 )
2022-03-22 21:50:46 +01:00
Oliver Stöneberg
e48b5fc920
avoid usage of deprecated Qt APIs ( #3923 )
2022-03-22 21:44:41 +01:00
Wolfgang Stöggl
3cefba0259
Set tinyxml2_LIBRARIES after find_package() ( #3918 )
...
If tinyxml2 is found by find_package(), then tinyxml2_LIBRARIES
is empty. Set tinyxml2_LIBRARIES to "tinyxml2::tinyxml2" in this case.
- Fixes "undefined reference to `tinyxml2::"
- printInfo.cmake: Fix indentation of tinyxml2_LIBRARIES
2022-03-22 21:41:44 +01:00
chrchr-github
40c2687ac4
Fix #10875 FP constStatement with delete ( #3926 )
2022-03-22 18:39:02 +01:00
orbitcowboy
cb6f234a92
gnu.cfg: Added support for secure_getenv()
2022-03-22 09:32:34 +01:00
chrchr-github
3faff5e9fc
Fix #10248 FP knownConditionTrueFalse static variable with direct initialization ( #3922 )
2022-03-22 07:24:40 +01:00
chrchr-github
18a7a805df
Fix #10502 FP doubleFree ( #3921 )
2022-03-21 22:17:50 +01:00
Daniel Marjamäki
b6fa9bb5aa
Revert "bump simplecpp"
...
This reverts commit bba31be87a
.
2022-03-21 19:11:26 +01:00
Daniel Marjamäki
bba31be87a
bump simplecpp
2022-03-21 18:53:18 +01:00
Oliver Stöneberg
dcaff3b635
donate_cpu_lib.py: some cleanups ( #3916 )
2022-03-21 18:46:19 +01:00
Daniel Marjamäki
1fe7cd348a
exename: Set proper exename when cppcheck is executed from PATH and argv[0] does not contain path information
2022-03-21 18:35:53 +01:00
Oliver Stöneberg
18d24e2420
reduce.py: some fixes ( #3914 )
...
* reduce.py: fixed potential "TypeError: slice indices must be integers or None or have an __index__ method" in combinelines()
* reduce.py: the combinelines() changes were not applied when the chunk mode was used
2022-03-21 17:14:47 +01:00
Oliver Stöneberg
2b3fc5ed1a
replaced Qt `foreach()` with standard `for` range loop / some related cleanups ( #3915 )
...
* replaced Qt foreach() with standard for range loop / some related cleanups
* updated translations
2022-03-21 17:14:26 +01:00
chrchr-github
0e147502cc
Fix #10888 FN variableScope with enum and struct ( #3920 )
...
* Fix #10888 FN variableScope with enum and struct
* Scope reduction
* Scope reduction
2022-03-21 16:05:38 +01:00
Oliver Stöneberg
9d4fb16d7d
added SmallVector alias with conditional boost::container version ( #3799 )
...
* printInfo.cmake: small cleanup
* added SmallVector alias with conditional boost::container version
Co-authored-by: Ken-Patrick Lehrmann <kp.lehrmann+github@gmail.com>
* smallvector.h: added custom allocator to regular SmallVector version
Co-authored-by: Ken-Patrick Lehrmann <kp.lehrmann+github@gmail.com>
Co-authored-by: Paul Fultz II <pfultz2@yahoo.com>
2022-03-20 10:13:32 +01:00
Oliver Stöneberg
469575cb21
donate_cpu_lib.py: actually make compile_cppcheck() fail when the build fails / some cleanups ( #3830 )
2022-03-19 20:06:11 +01:00
chrchr-github
2baf8f6cd4
Fix FP virtualCallInConstructor with function pointer ( #3913 )
2022-03-19 20:00:06 +01:00
Oliver Stöneberg
9d524616b3
use forward declarations for Ui:: objects / renamed *.ui files to mat… ( #3796 )
2022-03-19 19:54:20 +01:00
Oliver Stöneberg
8fc5c93803
refactored reduce.py into a class and added unit test for it ( #3791 )
2022-03-19 19:42:44 +01:00
Daniel Marjamäki
f907bba4e5
cppcheckdata.py: code cleanup
2022-03-19 12:27:24 +01:00
Daniel Marjamäki
10f93e31ef
cli: in linux set proper exename value when cppcheck is executed from PATH and argv[0] does not have path information
2022-03-19 11:27:59 +01:00
Daniel Marjamäki
7728c53cb9
Addons: Variable.constness will never be None
2022-03-19 10:36:46 +01:00
chrchr-github
297b0b5c60
Fix #10886 FP: Label 'enum' is not used. [unusedLabel] ( #3912 )
2022-03-17 17:38:23 +01:00
chrchr-github
97ce569859
Fix #10873 FP constStatement with extra parentheses in function call ( #3911 )
...
* Fix #10873 FP constStatement with extra parentheses in function call
* Format
2022-03-17 12:47:27 +01:00
chrchr-github
e073860e62
Fix #10841 FN uninitMemberVar when member is being used in constructor (regression) ( #3909 )
2022-03-16 20:35:55 +01:00
Daniel Marjamäki
fb89a2c742
misra: improved execution of premium addon
2022-03-16 18:59:02 +01:00
Paul Fultz II
40ff9edad6
Fix 10843: FP: danglingTemporaryLifetime ( #3908 )
...
* Fix 10843: FP: danglingTemporaryLifetime
* Format
2022-03-16 17:11:49 +01:00
chrchr-github
fb1170b10b
Fix #10872 FP constStatement with variable called std ( #3906 )
2022-03-16 15:29:34 +01:00
chrchr-github
b8ba0ae00e
Fix #10877 FP constStatement with ternary and comma operator ( #3905 )
2022-03-16 15:28:59 +01:00
Armin Müller
7cc45fb393
Typos found by running "codespell" ( #3907 )
...
Co-authored-by: Armin Müller <mueller.armin@foestergroup.de>
2022-03-16 15:28:44 +01:00
Georgi D. Sotirov
33315b0ae5
Replace tinyxml2_LIBRARY with tinyxml2_LIBRARIES ( #3897 )
2022-03-15 21:17:03 +01:00
chrchr-github
1aff160411
Fix #9303 FP uninitvar after lambda expression ( #3903 )
...
* Fix #9303 FP uninitvar after lambda expression
* Format
2022-03-15 14:32:33 +01:00
chrchr-github
f90a93591f
Add tests for #9871 , #10144 ( #3902 )
...
* Add test for #9871
* Add test for #10144
* Format
2022-03-15 12:54:19 +01:00
chrchr-github
200b098471
Fix #10516 FP for unused private function if address of function is taken ( #3901 )
2022-03-14 19:15:48 +01:00
chrchr-github
6376bac5bb
Fix #10451 syntaxError with typedef and lambda ( #3900 )
...
* Fix #10451 syntaxError with typedef and lambda
* Don't insert union into template argument list, add test
* Format
* Revert "Format"
This reverts commit 8c52d49c8b
.
* Format
2022-03-14 17:59:29 +01:00
chrchr-github
d3d40fd599
Fix #10868/#10869 FN: constStatement, handle unused character constants ( #3898 )
...
* Fix #10868 FN: constStatement, handle unused character constants
* simpleMatch
* Fix #10869 FN: constStatement
* Format
2022-03-14 14:14:32 +01:00
Oliver Stöneberg
0d336b868c
avoid some Clang compiler warnings ( #3896 )
2022-03-13 20:07:58 +01:00
Daniel Marjamäki
a6c1653ed2
Fixed #10853 (False positive: misra-c2012-16.3: macro parameter "default")
2022-03-13 19:58:27 +01:00
chrchr-github
2eed660b32
Fix #8496 Clarify warnings for uninitMemberVar ( #3760 )
2022-03-13 17:33:31 +01:00
Daniel Marjamäki
ee0d93e5da
Fixed #10861 (False positive: CERT-API01: only warn about char/wchar arrays.)
2022-03-13 16:42:07 +01:00
Daniel Marjamäki
df2c8f3a65
Fixed #10862 (Misplaced warning: misra-2.2: macros)
2022-03-13 13:15:38 +01:00
chrchr-github
190506db40
Fix #10737 Regression: unusedStructMember ( #3894 )
...
* Fix #10737 Regression: unusedStructMember
* Add test for #9161
* simpleMatch
2022-03-13 06:27:17 +01:00