Rikard Falkeborn
27316e04ed
Fix #10187 (memleak open with fd >= 0) ( #3156 )
2021-03-03 07:00:28 +01:00
Rikard Falkeborn
42a41e8b41
Fix #9139 (leak when variable has const qualifier) ( #3159 )
...
Also, in the tests, change socket/close to resource to get error
messages which say "resource leak" instead of "memory leak".
2021-03-03 06:58:38 +01:00
orbitcowboy
438584a49e
windows.cfg: Added support for FormatMessage,FormatMessageA,FormatMessageW functions
2021-03-02 12:46:26 +01:00
orbitcowboy
2a40ce6430
windows.cfg: Added support for more defines from WinBase.h and Winnt.h
2021-03-02 10:48:37 +01:00
Oliver Stöneberg
0c6bb44ea5
donate_cpu_lib.py: fixed timeout handling - again ( #3158 )
2021-03-02 10:05:49 +01:00
Oliver Stöneberg
4b1d1ebe41
donate_cpu_lib.py: fixed potential hang in timeout handling ( #3155 )
2021-03-01 22:17:00 +01:00
Daniel Marjamäki
fef956f3f0
Testing; Moved test/cli tests from travis to github actions
2021-03-01 18:49:59 +01:00
Daniel Marjamäki
773ca43894
Try to make Travis happy
2021-02-28 23:22:27 +01:00
Daniel Marjamäki
6b166eb5a7
test/cli/test-other-projects.py: Temporarily disable test (to make Travis happy)
2021-02-28 23:11:25 +01:00
Daniel Marjamäki
f39e605292
Travis: Run test/cli tests with python3
2021-02-28 22:12:28 +01:00
IOBYTE
8c57e2bb14
fix template simplifier overloaded specialized instantiations ( #3154 )
2021-02-28 21:52:14 +01:00
Daniel Marjamäki
c9bc5a076f
Fixed #10014 (-U switch ignored when using --project=compile_commands.json and --force)
2021-02-28 21:43:51 +01:00
Daniel Marjamäki
199f9608cb
TestSuite: Fixed getLocationStr
2021-02-27 04:33:16 +01:00
Daniel Marjamäki
7106e1f48f
Moved TestTokenizer::simplifyCasts tests to TestSimplifyTokens
2021-02-27 04:19:54 +01:00
Daniel Marjamäki
81c7fa0348
Moved TestTokenizer::tokenize6 to TestSimplifyTokens
2021-02-27 04:07:33 +01:00
Oliver Stöneberg
be62fab737
donate_cpu_lib.py: improved timeout reporting and process handling ( #3153 )
2021-02-27 03:19:08 +01:00
IOBYTE
bc8eb164a3
fix more daca simplifyUsing hangs ( #3152 )
2021-02-26 18:30:17 +01:00
Rikard Falkeborn
c3eb37972d
Fix #10182 (FN memory leak with if-statement) ( #3151 )
...
Improve leak detections in if-statements. This is done by checking
for leaks every time a scope is left. This allows cppcheck to catch
more memory leaks, as well as improve some error messages which now
contain the line where the variable goes out of scope, instead of the
end of the function.
2021-02-26 12:58:52 +01:00
Daniel Marjamäki
ebf54ac53e
Misra; Remove 12.4 because the check is not implemented properly
2021-02-25 22:11:13 +01:00
Oliver Stöneberg
33427b61e1
appveyor.yml: avoid duplicated debug builds and removed artifacts ( #3150 )
2021-02-25 21:56:41 +01:00
Daniel Marjamäki
1adea5c3b0
Move simplifyKnownVariables tests to TestSimplifyTokens
2021-02-25 21:32:56 +01:00
amai2012
4e32999df6
Perform coverage for pull requests
2021-02-25 20:14:50 +01:00
amai2012
8d8aa50017
Update codecov-action
2021-02-25 19:54:15 +01:00
Oliver Stöneberg
aac1dac9dc
removed 32-bit Appveyor builds and sped up cygwin build a bit ( #3143 )
2021-02-25 13:27:15 +01:00
Daniel Marjamäki
b05e55f04c
Fix compile error (Certainty::inconclusive)
2021-02-25 12:21:55 +01:00
Rikard Falkeborn
951ca2c8b9
Fix #10186 (FP memleak with cast and assignment) ( #3148 )
2021-02-25 10:55:34 +01:00
Daniel Marjamäki
0988448319
Fixed self-check. Naming conventions
2021-02-25 10:54:29 +01:00
Oliver Stöneberg
77474d0ccd
added 32-bit Windows build to GitHub action ( #3144 )
2021-02-24 22:41:25 +01:00
Daniel Marjamäki
e03851f51c
Fix compilation error
2021-02-24 22:31:46 +01:00
Daniel Marjamäki
15bc7ad5cb
Fix compilation error
2021-02-24 22:20:11 +01:00
Daniel Marjamäki
849ea6b3c8
Fix compilation errors
2021-02-24 22:12:48 +01:00
PKEuS
3998836b03
Refactorization: Improved string handling in test suite
...
Merged from LCppC.
2021-02-24 22:05:23 +01:00
PKEuS
141d2ac215
Refactorization: Improved internal implementation of severity and certainty levels
...
Backported from LCppC.
2021-02-24 22:00:06 +01:00
PKEuS
c25b4f1ad6
Fixed false negatives incompleteArrayFill on user defined types (estimate size to determine if it is larger than one byte)
...
Merged from LCppC.
2021-02-24 21:48:26 +01:00
Daniel Marjamäki
2baeeeb02f
astyle formatting
2021-02-24 21:48:26 +01:00
IOBYTE
9bb57a7b6f
fix #10183 (performance regression (hang) - ScopeInfo3::findInChildren()) ( #3147 )
2021-02-24 06:36:53 +01:00
Daniel Marjamäki
22727ee3ab
Addons; split up possible/known values and impossible values. This is inconsistent with core Cppcheck, however the addons do not handle impossible values in general. A future improvement might be to clarify this somehow, maybe renaming Token.values.
2021-02-23 22:40:49 +01:00
IOBYTE
fc1cfba5e0
fix simplifyUsing hang parsing class initializer list using {} ( #3146 )
...
Co-authored-by: Robert Reif <reif@FX6840>
2021-02-23 20:35:20 +01:00
IOBYTE
a07f93f819
fix simplifyUsing crash and hang ( #3145 )
2021-02-23 09:48:15 +01:00
shaneasd
02ac2b08a0
Fix some warnings ( #3096 )
2021-02-23 08:19:05 +01:00
Daniel Marjamäki
c638edc8b4
Bump simplecpp
2021-02-21 19:13:16 +01:00
Daniel Marjamäki
627a5e75cc
Token::stringify; refactor in/out parameter to return value
2021-02-21 17:21:33 +01:00
Oliver Stöneberg
e783df646a
various CI refactorings and cleanups ( #3142 )
2021-02-21 14:17:02 +01:00
Oliver Stöneberg
dcf32563ea
various daca@home improvements ( #3139 )
2021-02-21 08:47:58 +01:00
Daniel Marjamäki
cc1dfe243c
Fix Cppcheck warnings
2021-02-20 17:22:04 +01:00
Oliver Stöneberg
4dd7b2e958
donate_cpu_lib.py: reduced daca timeout to 1800 seconds ( #3140 )
2021-02-20 13:44:14 +01:00
Oliver Stöneberg
b6fc2f1a68
added self-check to sanitizer builds ( #3017 )
2021-02-20 13:34:57 +01:00
Daniel Marjamäki
99ff242dde
astyle formatting
...
[ci skip]
2021-02-20 13:33:57 +01:00
PKEuS
29a6031cea
Fixed more false negatives (and recently introduced false positives) literalWithCharPtrCompare by using ValueType
...
Merged from LCppC.
2021-02-20 13:29:59 +01:00
Oliver Stöneberg
b1ccad5f02
some Python-related CI cleanups ( #3066 )
2021-02-20 13:26:28 +01:00