orbitcowboy
df49b56a6f
posix.cfg: Added support for openat(). Reference: http://man7.org/linux/man-pages/man2/openat.2.html
2019-04-25 16:56:22 +02:00
amai2012
9692c3dde7
Add macros from signal.h
2019-04-25 12:17:26 +02:00
Daniel Marjamäki
76e13c45c7
temporarily disable duplicateConditionalAssign
2019-04-25 07:44:19 +02:00
Rikard Falkeborn
0ca217daef
TestToken: Add more tests ( #1806 )
2019-04-25 07:08:13 +02:00
Daniel Marjamäki
da46bff1b3
CheckLeakAutoVar: Use Library::isSmartPointer()
2019-04-24 15:35:47 +02:00
Daniel Marjamäki
87a3d2caa1
std.cfg: Add auto_ptr and weak_ptr configs
2019-04-24 14:21:26 +02:00
Daniel Marjamäki
2513c1499b
Library: Added <smart-pointer> element
2019-04-24 13:06:58 +02:00
Armin Müller
b59d7e2f35
Typos found by running "codespell" ( #1804 )
2019-04-23 13:26:48 +02:00
Nicodemes
272760f9ca
Fix explicit constructor with default arguments check bug
...
Before this fix, the code:
```
class A {
A(int, int x=3){
x;
}
};
```
Was considered OK.
But explicit keyword is still needed
I'm still new to open-source contributions, so I will gladly take advice.
2019-04-23 10:46:22 +02:00
Frank Zingsheim
315a093e18
CMake: Find header in externals, e.g. externals/picojson.h
2019-04-22 18:52:02 +02:00
Daniel Marjamäki
80d7df01cd
Fixed #8848 (False positive memory leak if locally defined type returns a new pointer)
2019-04-22 17:37:41 +02:00
Daniel Marjamäki
0edf0b5628
Fixed #8938 (FP identicalInnerCondition)
2019-04-22 16:54:59 +02:00
orbitcowboy
751902da86
posix.cfg: Added more 'direction'-attributes.
2019-04-21 12:34:44 +02:00
orbitcowboy
45a3f679b4
posix.cfg: Improved configuration for close(). Issue a warning in case close is called with a file pointer having a negative value.
2019-04-21 12:28:17 +02:00
Gary Leutheuser
bca2dfb3f4
Implement #7597 - valueflow: global constant ( #1802 )
...
* Implement const global value flow
* Tabs to spaces
2019-04-21 06:54:32 +02:00
IOBYTE
e786c6b7d4
partial fix for #8663 (Stack overflow with template disambiguator) ( #1801 )
...
This fixes simplifyUsing to remove 'typename' and 'template' from type
aliases of the form: using T3 = typename T1::template T3<T2>;
This lets the template simplifier instantiate the type alias which will
then remove the using type alias.
The crash will still happen if there is no instantiation because the
type alias will not be removed. The type alias is what cppcheck is
crashing on after the template simplifier and that still needs fixing.
2019-04-21 06:46:16 +02:00
Daniel Marjamäki
ff8cf4fe25
gui/test: Add projectfile test
2019-04-20 19:07:14 +02:00
Daniel Marjamäki
1f995fd536
Try to fix gui compile error on Travis
2019-04-20 11:26:29 +02:00
amai2012
361fc44005
Adjust more test results for invalid code
2019-04-19 20:53:07 +02:00
amai2012
ebe7783493
Adjust some test results for invalid code. Comment out still crashing example for #8913
2019-04-19 17:42:21 +02:00
amai2012
2788d9f7d2
Correct two recently added macros
2019-04-19 15:43:17 +02:00
Daniel Marjamäki
3327102aa4
GUI: Test ProjectFile::getCheckSuppressions()
2019-04-19 15:09:55 +02:00
Daniel Marjamäki
5a14473963
Disable gui/test again
2019-04-19 14:55:10 +02:00
Daniel Marjamäki
ece13033b2
dmake: use -isystem for externals to avoid compiler warnings
2019-04-19 14:52:49 +02:00
amai2012
28bc3cad92
#8913 SIGSEGV in CheckUnusedVar::checkFunctionVariableUsage - C++/CLI code
2019-04-19 13:55:25 +02:00
Daniel Marjamäki
ae3e53f391
Travis: Try to fix gui/test
2019-04-19 13:45:14 +02:00
amai2012
cfe11acf82
Supply BE() and ASSERT() macros
2019-04-19 12:10:42 +02:00
Daniel Marjamäki
91c000c09d
Travis: Try to reactivate the gui/test tests
2019-04-19 11:57:52 +02:00
Daniel Marjamäki
bb00435736
Travis: Temporarily disable gui/test until problems are fixed
2019-04-19 11:23:59 +02:00
Daniel Marjamäki
93b27b2022
cleanup gui/test
2019-04-19 09:41:58 +02:00
Daniel Marjamäki
d89923386d
Removed gui/test/xmlreport
2019-04-19 08:41:48 +02:00
Daniel Marjamäki
17ec37b366
Run gui tests on Travis
2019-04-19 07:56:10 +02:00
Daniel Marjamäki
fee01099a9
GUI: Fix tests
2019-04-19 07:39:43 +02:00
IOBYTE
7799ed4243
Fixed #8889 (varid on function when using trailing return type.) ( #1800 )
...
* Fixed #8889 (varid on function when using trailing return type.)
Don't set varid for trailing return type.
* Add a test for #9066 (Tokenizer::setVarId: varid set for trailing return type)
2019-04-18 20:22:39 +02:00
Daniel Marjamäki
648acd1cbf
astyle formatting
...
[ci skip]
2019-04-18 20:21:00 +02:00
Paul Fultz II
103002578d
Add check for duplicate condition and assignment ( #1799 )
...
* Add check duplicate condition and expression
* Format
* Add assign token
* Add to classInfo
* Change note messages
2019-04-18 20:20:24 +02:00
versat
206488c0ea
gtk.cfg: Add some g_list_*() function / macro configurations.
...
Found missing by daca@home.
2019-04-18 10:49:02 +02:00
Daniel Marjamäki
b2e3af5869
Fixed #8637 (GUI: Supression filename should accept relative paths)
2019-04-18 09:52:29 +02:00
Daniel Marjamäki
0c7d4eb91f
Try to fix Travis
2019-04-17 09:04:51 +02:00
Daniel Marjamäki
b0e1138f80
pr.py: fix
2019-04-16 20:13:38 +02:00
Daniel Marjamäki
f26b15e5b5
astyle formatting
...
[ci skip]
2019-04-16 19:07:44 +02:00
Daniel Marjamäki
253f2c9e9d
Fixed #9043 (false positive & regression: Variable '*s' is reassigned a value before the old one has been used.)
2019-04-16 19:07:26 +02:00
versat
5579ea3338
motif.cfg: Add configuration for XFree()
2019-04-16 11:22:08 +02:00
Daniel Marjamäki
146326bfaf
misra.py: Rewrote rule texts parser
2019-04-16 10:57:31 +02:00
Daniel Marjamäki
ccc830870c
GUI: Updated selection of files/folders. Prefer relative paths.
2019-04-16 10:32:34 +02:00
Daniel Marjamäki
7f19a9a255
addon/misra.py: fix problem with summary
2019-04-16 08:45:06 +02:00
Daniel Marjamäki
e0da316759
cppcheckdata.py: fix sys.errout
2019-04-16 08:26:58 +02:00
bbennetts
7287ffe781
Handle 'arguments' sections in compile_commands.json ( #1797 )
...
* Handle 'arguments' sections in compile_commands.json
Previous code assumes 'commands' exists and ill assert if t does not.
* Correct typo checking for "arguments" rather than "commands"
* Use ostringstring rather than stringstream
* Add test deominstrating graceful degradation
* Add test for parsing "arguments" rather than "commands"
2019-04-15 20:03:42 +02:00
Daniel Marjamäki
9a563a7d60
test/cli: Add test for cppcheck gui project with addons
2019-04-15 20:02:17 +02:00
Daniel Marjamäki
2156dd7a40
test/cli: Add test importing a vs solution with absolute path
2019-04-15 19:53:49 +02:00