Matthias Krüger
6eca26a4cf
travis: add job making sure cppcheck builds on ubuntu precise (12.04) with gcc and clang
2019-01-12 21:09:04 +01:00
Daniel Marjamäki
e6edd74099
Temporarily suppress Cppcheck false positives
2019-01-12 19:11:44 +01:00
Daniel Marjamäki
022259caf3
Fix Cppcheck warning
...
[ci skip]
2019-01-12 19:11:18 +01:00
Daniel Marjamäki
14b419a48f
Fix Cppcheck warning
...
[ci skip]
2019-01-12 19:10:59 +01:00
Daniel Marjamäki
21f7274533
Remove TestMemleakGlib and TestMemleakWindows
...
[ci skip]
2019-01-12 19:09:55 +01:00
Daniel Marjamäki
9765a2dfab
Remove unused test class. The old memleaks checker will not be used anymore.
2019-01-12 18:45:42 +01:00
Daniel Marjamäki
d40314b825
Replace Token::Match with Token::simpleMatch for simple patterns
...
[ci skip]
2019-01-12 18:44:48 +01:00
Daniel Marjamäki
5276fd68b2
Remove unused test functions
...
[ci skip]
2019-01-12 18:32:18 +01:00
Daniel Marjamäki
784131ab98
Suppress warnings in externals/*.h
2019-01-12 18:29:58 +01:00
Daniel Marjamäki
f629fa3d66
Fix Cppcheck warning
...
[ci skip]
2019-01-12 18:29:34 +01:00
Daniel Marjamäki
2b1b8f8fe9
Fix Cppcheck warnings
...
[ci skip]
2019-01-12 18:29:08 +01:00
Daniel Marjamäki
8dd641b8be
Use OVERRIDE in test
2019-01-12 15:45:25 +01:00
Daniel Marjamäki
792419a591
Use OVERRIDE macro in cli
2019-01-12 15:42:50 +01:00
Daniel Marjamäki
1cd16cf94f
Suppressions: Handle comment in file that starts with #
2019-01-12 15:21:47 +01:00
Matthias Krüger
c334d959ce
travis: dmake job: don't redundatly install ubuntu packages
2019-01-12 13:22:54 +01:00
Sebastian
1042208c2c
triage: Fix warnings and Windows issues; some enhancements ( #1591 )
...
Changes:
- Fixed compiler warnings
- Add "*.*" to file open menu so files without suffix can be opened
- Make it work under Windows
- Make wget() and unpackArchive() methods so they can access the UI
- wget() and unpackArchive() use the new method runProcess() now that also does some error handling
- Errors are shown in the status bar for easier debugging / usage
- Add readme.txt
- Let travis build the triage tool
2019-01-12 09:16:43 +01:00
Crayon
d54017a0c4
Correct documentation and give an example ( #1594 )
2019-01-12 08:06:31 +01:00
Paul Fultz II
800076f9b8
Install to the correct cfgdir ( #1593 )
2019-01-12 08:05:03 +01:00
Daniel Marjamäki
8b5f36670a
Introduce macro OVERRIDE for gcc-4.6 compatibility.
2019-01-12 07:37:42 +01:00
Sebastian
bae4040060
donate-cpu.py: Save some system / platform information ( #1590 )
...
Save some system information which could help debugging the donate-cpu script and Cppcheck.
2019-01-11 20:07:11 +01:00
Daniel Marjamäki
c6b48b67f9
astyle formatting
...
[ci skip]
2019-01-11 16:37:12 +01:00
juremenart
45def06d59
fix trailing / from CMAKE JSON file and update unittests to cover both (w and w/o cases) ( #1592 )
...
* fix for CMake compile_commands.json input - director does not include trailing / which makes include directories wrong - so add it if it doesnt exist
* fix the bugfix for trailing / in the directory name of CMAKE JSON file, add also new test case to see if it works in both cases (with and without trailing /)
* revert adding accidental new line
2019-01-11 16:36:55 +01:00
versat
0c93e0c8cb
donate-cpu-server.py: Increase max accepted result size to 2 MB
2019-01-11 14:58:27 +01:00
rikardfalkeborn
49bad106bb
Add regression test for 8168 ( #1588 )
...
Ticket 8168 was fixed in 713f607168
.
Add a regression test to make sure the bug doesn't reappear.
2019-01-11 14:11:48 +01:00
versat
991191450a
astyle formatting
...
[ci skip]
2019-01-11 12:56:31 +01:00
Sebastian
e8fb3c0546
donate-cpu-server.py: Time report: Further improvements and fixes ( #1586 )
...
Changes:
- Rename "time" page to "time.html" to avoid conflict with "time" package
- Output content as HTML instead of plain text
- Format head row of preformatted table bold
- Show factor for total time now too
Tested locally
2019-01-11 10:05:19 +01:00
Paul Fultz II
921f6e4313
Fix issue 8883: False positive: returnDanglingLifetime with local struct or class ( #1585 )
2019-01-11 09:51:02 +01:00
Paul Fultz II
5fa956a597
Fix issue 8932: False positive knownConditionTrueFalse - valueflow ignores operator < ( #1584 )
2019-01-11 08:39:23 +01:00
amai2012
400c6c8e76
Improve configuration for dlopen and add suitable test
2019-01-10 21:14:37 +01:00
Daniel Marjamäki
8509159d1a
Uninitialized Member variable: Fixed FP when delegate constructor is used
2019-01-10 20:13:37 +01:00
Sebastian
fd9ca16e51
donate-cpu-server.py: Time report: Format output, add showing factor ( #1582 )
...
Format the time output so the columns have the same width (as long as a text is not too long).
Add showing the factor of the time difference so very suspicious differences can be seen instantly.
Made the function body more PEP 8 conform by using lowercase variable names with underscores as delimiters.
Tested locally.
2019-01-10 19:10:56 +01:00
amai2012
e5c7543a7d
posix.cfg: add dlopen, dlsym, dlclose
2019-01-10 18:33:44 +01:00
rikardfalkeborn
a48c8abcda
Fix 8124: False positive va_end missing with lambda ( #1577 )
...
Skip lambdas, to avoid false positives due to possible
return statements in lambdas.
Also, run dmake.
2019-01-10 18:32:17 +01:00
amai2012
d3a10d3675
#8769 Don't check .cl files
2019-01-10 17:02:57 +01:00
orbitcowboy
205179fbb8
wxwidgets.cfg: Added support for some functions from wx/dc.h
2019-01-10 16:26:00 +01:00
orbitcowboy
0557111c0c
wxwidgets.cfg: Added support for wxPropertyGridInterface::Append() and wxPropertyGridPage::Append().
2019-01-10 14:41:59 +01:00
orbitcowboy
d946ed21a0
wxwidgets.cfg: Added support for some functions from wxArrayString.
2019-01-10 14:03:12 +01:00
orbitcowboy
db29c1f148
wxwidgets.cfg: Improved support for more wxGrid functions.
2019-01-10 13:55:20 +01:00
orbitcowboy
9c2e2b866b
wxwidgets.cfg: Added support for wxSize::SetHeight() and wxSize::SetWidth().
2019-01-10 13:43:52 +01:00
orbitcowboy
984be24292
wxwidgets.cfg: Added support for wxFAIL_MSG.
2019-01-10 13:37:27 +01:00
orbitcowboy
1f3dce17f7
wxwidgets.cfg: Added support for wxColour::ChangeLightness().
2019-01-10 13:32:15 +01:00
amai2012
efbdb57d7b
MSVC 15-x64-Release build often fails due to unknown reasons. It got disabled now.
2019-01-10 08:30:35 +01:00
orbitcowboy
11a4bcbb54
wxwidgets.cfg: Added support for macros from wx/listctrl.h
2019-01-10 08:26:33 +01:00
orbitcowboy
dff82c5d67
wxwidgets.cfg: Added support for macros from wx/dynarray.h
2019-01-10 08:21:13 +01:00
Paul Fultz II
4e147a4c59
Add a check for duplicate if statements
...
This will warn for this:
```cpp
int f(int val)
{
int i = 0;
if( val & 0xff)
i = 1;
if( val & 0xff)
i = 1;
return i;
}
```
2019-01-09 20:41:01 +01:00
Daniel Marjamäki
35e56942d1
Fixed #8116 ([False positive] Invalid memory leak detection when using reference.)
2019-01-09 20:38:32 +01:00
Daniel Marjamäki
75e367c48b
Fixed #8340 (incorrect memleak errors)
2019-01-09 19:50:41 +01:00
Daniel Marjamäki
5051744304
astyle formatting
...
[ci skip]
2019-01-09 19:47:46 +01:00
Sebastian
1dc5ff022e
donate-cpu-server.py: Fix PEP 8 and other warnings ( #1578 )
...
There should be no functional changes.
Tested locally.
2019-01-09 18:39:42 +01:00
Sebastian
f673d552cb
donate-cpu.py: Add Cppcheck cmd line options to the output ( #1581 )
...
It is interesting what libraries, how many jobs, ... were used during analysis.
Tested locally.
2019-01-09 18:38:00 +01:00