Commit Graph

27413 Commits

Author SHA1 Message Date
Daniel Marjamäki 4779f0e172 TemplateSimplifier: Fixed instantiation when template parameters are A<..>, B<..> 2022-09-01 20:24:01 +02:00
chrchr-github 5804cc44e7
Fix FP bufferAccessOutOfBounds (#4427)
* Fix FN with buffer size 1

* Fix FP bufferAccessOutOfBounds
2022-08-31 19:31:37 +02:00
chrchr-github 3925a27182
Fix FP knowConditionTrueFalse (#4419)
* Fix #10426 FN (style) Condition 's.empty()' is always false

* Fix test

* Fix FP knowConditionTrueFalse

* Check for casts

* Fix FP for user-defined functions

* Adjust condition detection

* Tweaks
2022-08-30 18:08:24 +02:00
Oliver Stöneberg 9d107d911b
fixed #11276 (donate-cpu: Improve library detection) (#4421) 2022-08-30 18:08:02 +02:00
Daniel Marjamäki 98b2fd8151 Manual: Added chapter about Cppcheck Premium 2022-08-29 18:04:23 +02:00
Oliver Stöneberg 6c72a27c2c
CI-unixish-docker.yml: perform make and CMake builds in parallel (#4415)
* CI-unixish-docker.yml: perform make and CMake builds in parallel

* CI-unixish-docker.yml: cleanups

* CI-unixish-docker.yml: only install necessary packages
2022-08-29 12:27:23 +02:00
Oliver Stöneberg eab60668fd
htmlreport/check.sh: use less heavy input for tests (#4416) 2022-08-29 12:26:10 +02:00
chrchr-github 9ab4f9976d
Fix #10426 FN (style) Condition 's.empty()' is always false (#4414)
* Fix #10426 FN (style) Condition 's.empty()' is always false

* Fix test
2022-08-29 12:25:10 +02:00
chrchr-github 1e14e360cb
Fix #8295 FN (error) Buffer is accessed out of bounds (wcpncpy, wcsncpy) (#4412)
* Fix #8295 FN (error) Buffer is accessed out of bounds (wcpncpy, wcsncpy)

* Fix cfg, validation

* Fix validation
2022-08-29 12:24:58 +02:00
chrchr-github df704361f6
Fix FN with buffer size 1 (#4410) 2022-08-29 12:24:44 +02:00
Daniel Marjamäki 399c5887cc createrelease: small tweaks 2022-08-28 17:21:32 +02:00
Daniel Marjamäki 4a4f69110e daca@home: update OLD_VERSION 2022-08-28 17:21:13 +02:00
Daniel Marjamäki 51a074a08f Updated AUTHORS 2022-08-28 14:32:05 +02:00
Daniel Marjamäki a400c94230 Update Copyrights 2022-08-28 14:22:12 +02:00
Daniel Marjamäki 4b98fd00e8 gui: run lupdate 2022-08-28 13:28:24 +02:00
orbitcowboy 00251024c4 Cleanup some cmakelint warnings in CMakeLists.txt 2022-08-28 00:21:10 +02:00
Paul Fultz II a586b9e8ee
Use safe compile option (#4413) 2022-08-27 23:22:31 +02:00
Daniel Marjamäki 5e0fc24bb7 Fixed #11232 (Syntax Error: AST broken, binary operator '!=' doesn't have two operands) 2022-08-27 18:02:19 +02:00
Oliver Stöneberg f0ac0d8910
codeql-analysis.yml: updated actions to v2 (#4407) 2022-08-27 15:50:13 +02:00
Oliver Stöneberg 732282fe06
added initial usage of `ccache` in the CI (#4408) 2022-08-27 15:06:16 +02:00
Oliver Stöneberg d26eb3903e
moved deprecated `ubuntu-18.04` from `CI-unixish.yml` to `CI-unixish-docker.yml` (#4409) 2022-08-27 15:05:40 +02:00
Oliver Stöneberg dd4c9ae902
codeql-analysis.yml: added missing permission (#4406) 2022-08-27 09:29:40 +02:00
Paul Fultz II e715ba1d3c
Update releasenotes.txt (#4405) 2022-08-27 07:05:16 +02:00
Oliver Stöneberg cf1271889a
reduced permissions of GitHub actions (#4403) 2022-08-26 23:25:07 +02:00
chrchr-github 0e788fb697
Update releasenotes.txt (#4404) 2022-08-26 23:24:25 +02:00
chrchr-github 7156afe003
Fix #5140 FN (error) buffer access out of bounds - known argument (#4402)
* Fix #5140 FN (error) buffer access out of bounds - known argument const char* argv[]

* Format
2022-08-26 17:27:54 +02:00
chrchr-github b815153b0c
Add test for #10594 (#4397) 2022-08-26 11:36:47 +02:00
chrchr-github 917496a844
Fix #5678 FN destructor with no definition hide mismatching alloc/dealloc (#4401)
* Fix #5678 FN destructor with no definition hide mismatching allocation / deallocation

* Format

* Fix test

* Format
2022-08-25 22:52:51 +02:00
Daniel Marjamäki 35fba07910 cli: updated help text formatting 2022-08-25 22:35:53 +02:00
Oliver Stöneberg cee04f4ee5
donate-cpu: fixed `make` build / cleanups (#4398) 2022-08-25 22:20:30 +02:00
Oliver Stöneberg d12f4fdd6b
updated CI to clang-15 (#4386) 2022-08-25 15:28:39 +02:00
Daniel Marjamäki 514278e02b Fixed #11181 (cppcheckdata.py: handle exception when ctu-info file is missing) 2022-08-25 11:10:39 +02:00
Daniel Marjamäki 0d9bf03b5c misra.py: do not execute premiumaddon to perform misra checks 2022-08-25 08:07:22 +02:00
chrchr-github 456c6b410e
Fix #2304 FN known strcpy parameter (#4396)
* Fix #2304 FN known strcpy parameter

* Parentheses

* Format
2022-08-24 21:23:45 +02:00
Daniel Marjamäki 94322d6e0a update --help output. sort options alphabetically. remove some old options. 2022-08-24 08:54:47 +02:00
Daniel Marjamäki 112852f70b formatting 2022-08-24 08:53:59 +02:00
Daniel Marjamäki 8c0dfea472 cli: if cppcheck premium edition is executed then allow a special option --premium=<option> also 2022-08-24 08:48:12 +02:00
Oliver Stöneberg 19e9712762
install latest clang from `apt.llvm.org` repo instead of relying on distro packages - eliminates need for docker images (#4372) 2022-08-23 21:40:31 +02:00
Oliver Stöneberg 0cf174e18f
.gitignore: narrowed some of the exclusions / added CLion `.run` folder (#4395) 2022-08-23 21:19:38 +02:00
Oliver Stöneberg 467648bec6
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
chrchr-github 13e8d5220c
Fix another c_strParam regression (#4394) 2022-08-23 20:26:36 +02:00
Daniel Marjamäki a2454ecbca cli import cppcheck project with premium options 2022-08-23 20:13:03 +02:00
chrchr-github 4be7f689d7
Fix c_strParam regression (#4393)
* Fix #7515 New check: Not needed c_str() operation

* Comment

* Detect more instances of c_str() misuse

* Fix bad merge

* Check for data() also

* Fix

* Format

* Format

* Fix c_strParam regression
2022-08-23 15:00:27 +02:00
Daniel Marjamäki 5d267000e2 GUI: configuration of premium features 2022-08-22 21:11:28 +02:00
Oliver Stöneberg 1262c98416
some clang-tidy CMake integration improvements / fixed `SOVERSION` with multi-digit versions (#4391) 2022-08-22 20:13:13 +02:00
chrchr-github 66fca7ba91
Detect more instances of c_str() misuse (#4392)
* Fix #7515 New check: Not needed c_str() operation

* Comment

* Detect more instances of c_str() misuse

* Fix bad merge

* Check for data() also

* Fix

* Format

* Format
2022-08-22 14:06:10 +02:00
Daniel Marjamäki f81fc1129b AUTHORS: Add g-chauvel 2022-08-21 22:37:36 +02:00
g-chauvel be658e2392
misra_14_2 various fixes (#4324) 2022-08-21 20:11:10 +02:00
Oliver Stöneberg 9b4973d711
astutils.cpp: some small optimizations (#4378) 2022-08-21 17:39:21 +02:00
Daniel Marjamäki c820d2ba97 refactoring 2022-08-21 17:33:43 +02:00