orbitcowboy
2d7323c65f
posix.cfg: Added support for sendfile().
2019-04-26 16:47:49 +02:00
orbitcowboy
c693e8969d
gnu.cfg: Added support for more interfaces.
2019-04-26 16:39:04 +02:00
Sebastian
53357f2f31
boost.cfg: Add configuration for Boosts smart pointers ( #1811 )
2019-04-26 12:41:44 +02:00
Paul Fultz II
c4325bbec3
Fix issue 9103: False positive duplicateConditionAssign ( #1808 )
...
* Fix issue 9103: False positive duplicateConditionAssign
* Update conditional message
2019-04-26 12:30:41 +02:00
Paul Fultz II
e856920488
Fix false positive with ignoredReturnValue with std::move ( #1809 )
2019-04-26 12:22:31 +02:00
Daniel Marjamäki
b1ca7c9a66
astyle formatting
...
[ci skip]
2019-04-26 11:30:35 +02:00
Paul Fultz II
39f4374446
Improve diagnostics with null smart pointers ( #1805 )
...
* Warn when dereferencing null smart pointers
* Improve tracking of smart pointer values
* Use library isSmartPointer
2019-04-26 11:30:09 +02:00
orbitcowboy
bc7e835524
posix.cfg: Added support for ttyname_r().
2019-04-26 10:24:10 +02:00
orbitcowboy
6d681a0959
posix.cfg: Issue a warning in case a function accepting a file descriptor is called with a negative value.
2019-04-26 10:16:29 +02:00
orbitcowboy
f288e18c2c
posix.cfg: Added support for more interfaces.
2019-04-26 09:48:38 +02:00
orbitcowboy
254cdd3b19
windows.cfg: Issue a warning in case _close() is called with a negative file descriptor.
2019-04-26 09:26:25 +02:00
orbitcowboy
c0b533c452
gnu.cfg: Warn for socket/file-descriptors having negatives values.
2019-04-25 17:07:44 +02:00
orbitcowboy
c4fb56e550
posix.cfg: Warn for socket/file-descriptors having negatives values.
2019-04-25 17:04:30 +02:00
orbitcowboy
4a91b7ec77
Merge branch 'master' of https://github.com/danmar/cppcheck
2019-04-25 16:58:47 +02:00
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