orbitcowboy
6444f466d8
wxwidgets.cfg: Added support for more EVT-macros, found by daca@home.
2019-11-06 09:23:27 +01:00
orbitcowboy
ef585ec7ed
wxwidgets.cfg: Added support for more EVT-macros, found by daca@home.
2019-11-06 09:15:54 +01:00
orbitcowboy
bf9b0e7e73
wxwidgets.cfg: Added support for more EVT-macros, found by daca@home.
2019-11-06 09:13:02 +01:00
orbitcowboy
14afe4bd7f
wxwidgets.cfg: Added support for more EVT-macros, found by daca@home.
2019-11-06 09:08:24 +01:00
orbitcowboy
d60ff5ef58
wxwidgets.cfg: Added support for more EVT-macros, found by daca@home.
2019-11-06 09:01:14 +01:00
orbitcowboy
85e49a3de8
windows.cfg: Added support for BEGIN_MESSAGE_MAP() and END_MESSAGE_MAP()-macros.
2019-11-06 09:00:48 +01:00
orbitcowboy
5f728284d3
wxwidgets.cfg: Added more EVT-macros found by daca@home.
2019-11-06 08:49:29 +01:00
Sebastian
0a38b1b511
pylintrc_travis: Enable more messages and fix issues ( #2332 )
...
The plan is to enable more and more useful messages and fix the issues
step by step to improve the code quality.
2019-11-05 21:05:43 +01:00
orbitcowboy
6c9c723850
wxwidgets.cfg: Added support for more interfaces.
2019-11-05 15:04:29 +01:00
orbitcowboy
4f6ac5f449
wxwidgets.cfg: Added support for more interfaces.
2019-11-05 14:05:52 +01:00
orbitcowboy
f59a2b491d
#9455 : Added a test case.
2019-11-05 14:00:50 +01:00
Paul Fultz II
d1f225b8ee
Fix issue 9201: FP: returnDanglingLifetime on pointer to variable of static struct ( #2303 )
...
* Fix issue 9201: FP: returnDanglingLifetime on pointer to variable of static struct
* Fix capture of non-local variables in lambdas
2019-11-05 07:10:32 +01:00
Paul Fultz II
c61880c457
Search relative path first before install path ( #2328 )
2019-11-05 07:09:59 +01:00
Sebastian
83caedec8a
donate-cpu.py: Fix two pylint warnings ( #2327 )
...
Line 102: Comparison to literal
Line 117: Unnecessary "else" after "break"
2019-11-04 18:36:14 +01:00
Daniel Marjamäki
06ea1a2b53
Fixed #9312 (FP : variable is assigned a value that is never used (static))
2019-11-04 17:59:16 +01:00
Sebastian
61286392d9
htmlreport: Also check "cppcheck-htmlreport" with pylint on Travis ( #2326 )
...
The error that pylint does not find HtmlFormatter in pygments.formatters
is known and the common solution is to suppress this error.
See https://github.com/PyCQA/pylint/issues/491
2019-11-04 15:44:13 +01:00
Maksim Derbasov
afe59531c7
Triage cleanup ( #2324 )
...
* regex for version
* fields names improved
* codestyle
* m prefix for fsmodel
* string duplication removed
* find in files: show all entries
* spaces
* added hint to checkboxes; element naming fixed
* layout naming improvement
* spacing 6->1
2019-11-04 07:10:31 +01:00
Paul Fultz II
acd2a92efc
Fix issue 9395 and 9423: False positive: nullPointerRedundantCheck ( #2323 )
2019-11-04 07:02:25 +01:00
Georgy Komarov
c207828a11
misra.py: Fix large memory usage with suppressions ( #2321 )
...
* misra.py: Fix large memory usage with suppressions
Don't save whole lxml locations when collecting rules suppressions
statistics. This fixes the problem with large memory usage when
some rules are suppressed.
See issue description:
https://sourceforge.net/p/cppcheck/discussion/development/thread/51fc053626/
* don't override 'file' builtin
2019-11-04 06:58:33 +01:00
Georgy Komarov
ff61d8e370
misra.py: Skip execution for globally suppressed checks ( #2301 )
...
These changes will improve misra.py execution time in the
case where we use globally suppressed checks. For example, when using
single MISRA rule and suppress others, we could get about twice the
execution speed, since most of `MisraChecker' class methods will not
be started at all.
Some measurements and discussion are available at:
https://github.com/danmar/cppcheck/pull/2301
2019-11-04 06:57:41 +01:00
Paul Fultz II
c38bbb75e4
Fix issue 9448: Check for temporaries from library function calls ( #2312 )
2019-11-03 22:02:10 +01:00
Daniel Marjamäki
c7a23f126f
Fixed #9373 (False Positive - missingOverride)
2019-11-03 18:42:04 +01:00
Daniel Marjamäki
c3ae028a41
Fixed #8617 (False positive: uninitdata for memory allocated and initialized in function called new (C code))
2019-11-03 17:08:28 +01:00
Daniel Marjamäki
8c8952ae7c
Fixed #9324 (FP compareBoolExpressionWithInt - when using C++ and/or operator synonyms)
2019-11-03 12:53:30 +01:00
Daniel Marjamäki
03ae0ccef3
AST: Do not hang for code 'foo({ for (a;b;c) {} });'
2019-11-03 11:02:59 +01:00
Daniel Marjamäki
fadf209e18
Add test for #9326 (FP knownConditionTrueFalse - Returning bool variable treated as condition)
2019-11-03 08:49:39 +01:00
Daniel Marjamäki
df8bdabddd
Testing; Readded tests
2019-11-03 08:45:34 +01:00
Maksim Derbasov
7de55b09f8
Triage tool ui improvement ( #2320 )
...
* triage tool: ui improvement
* small code tweak
* ci fix
* ci fix 2nd attempt
2019-11-03 08:30:30 +01:00
Armin Müller
c95b5d0a3c
donate-cpu-server.py: Add explanation how to read timing list ( #2315 )
...
* Add explanation how to read timing list
* fixed HTML
2019-11-03 08:27:05 +01:00
Daniel Marjamäki
908cd39572
daca2-packages: improved filter for versions
2019-11-03 08:13:06 +01:00
Daniel Marjamäki
dbbea54b74
daca2-getpackages: if a package has many versions then only scan latest
2019-11-03 08:05:06 +01:00
Daniel Marjamäki
9917ff1ce1
googletest: ASSERT_THROW / EXPECT_THROW
2019-11-02 20:17:04 +01:00
Daniel Marjamäki
791242ea78
Fixed #6975 and #9376 (Tokenizer: unknown macro without semicolon)
2019-11-02 19:34:19 +01:00
Daniel Marjamäki
28182084f2
Fix crash when there are too many nested scopes. Bail out after 1000 nested scopes. The crash was in gcc and was seen with daca@home.
2019-11-02 18:23:10 +01:00
Daniel Marjamäki
29778fdddb
readme: Donate CPU
2019-11-02 08:25:04 +01:00
Daniel Marjamäki
42432982ea
oss-fuzz: fixed inner assignment
2019-11-02 08:00:42 +01:00
Dmitry-Me
0b97f37736
Improve test coverage
2019-11-01 18:41:10 +03:00
Dmitry-Me
f2cf71f6e9
Fix typo
2019-11-01 18:39:53 +03:00
Sebastian
4f927ea6c7
htmlreport: Add HTML validation and fix syntax errors ( #2317 )
...
Add HTML validation with HTML Tidy for the resulting files index.html
and stats.html.
Fix syntax errors found by the validator.
Fix that the links in the footer are not clickable by removing the
"height: 75%;" style for the classes "menu" and "menu_index".
Add some line breaks to the HTML output for better readability and for
easier debugging.
2019-11-01 15:06:44 +01:00
Maksim Derbasov
91a4bcd71e
Triage tool usability improvement ( #2319 )
...
* gitignore for triage tool
* window header
* Search filename / in files functionallity for triage tool
* small codeclean
2019-11-01 09:29:00 +01:00
IOBYTE
3f0ef01154
Fix #9446 (Syntax error on valid C++ code) ( #2316 )
2019-11-01 09:11:29 +01:00
Sebastian
e9bc62d5b4
.travis.yml: Install pygments via pip instead of apt ( #2318 )
...
This way we should get a newer version of pygments.
2019-11-01 09:10:10 +01:00
Daniel Marjamäki
35d04cd2d3
AST: non-standard handling of ; in argument list for unknown macro
2019-11-01 09:05:45 +01:00
Armin Müller
bdd41151ed
Typos found by running "codespell" ( #2314 )
2019-10-31 15:03:18 +01:00
Daniel Marjamäki
6e9d496ab3
ValueFlow: handling of char literal size before ValueType has been set
2019-10-31 14:06:46 +01:00
Sebastian
db7cddf163
cppcheck-htmlreport: Fix premature end of loop in statistics output ( #2313 )
...
This issue and also a fix has been reported by Lionel Gimbert in the forum:
https://sourceforge.net/p/cppcheck/discussion/development/thread/d18fb312ee/
All credit goes to him.
2019-10-31 09:26:43 +01:00
Sebastian
8b2903d5ce
openssl.cfg: Add OpenSSL library configuration with tests ( #2248 )
...
* openssl.cfg: Add OpenSSL library configuration with tests
Reference: https://www.openssl.org/docs/man1.1.1/man3/
* openssl.cfg: Add some configurations for EVP functions
Add alloc/dealloc configuration for EVP_CIPHER_CTX_new and
EVP_CIPHER_CTX_free.
Add configuration for encryption functions that are used in example code
which is added to the tests.
2019-10-31 09:21:08 +01:00
versat
181e1baa69
cppcheck.vcxproj.filters: Also update this Visual Studio file
...
This .filters file has been automatically updated by Visual Studio when
the two new files were added. So it should also be updated.
2019-10-31 09:05:58 +01:00
Daniel Marjamäki
9094ff01d3
Fixed #9363 (knownConditionTrueFalse: False positive about function parameter)
2019-10-31 08:34:09 +01:00
orbitcowboy
7c2c81bf41
wxwidgets.cfg: Added support for more EVT-macros, found by daca@home.
2019-10-31 08:32:13 +01:00