Daniel Marjamäki
52f9650533
Refactoring: Use visitAstNodes
2018-11-23 19:16:19 +01:00
Daniel Marjamäki
5e727f92a0
googletest: add TEST_P
2018-11-23 18:55:05 +01:00
Daniel Marjamäki
745b58de26
Refactoring: Use visitAstNodes
2018-11-23 17:18:07 +01:00
Malcolm Parsons
344424b759
cppcheck-htmlreport: Handle errors with multiple locations ( #1488 )
2018-11-23 11:58:19 +01:00
IOBYTE
358f0c473d
Modify template simplifier to add forward declarations of some templa… ( #1489 )
...
* Modify template simplifier to add forward declarations of some template functions so symbol database can make sense of the expanded templates.
* Fix travis.
2018-11-23 11:36:09 +01:00
orbitcowboy
ef05be2600
wxwidgets.cfg: Fixed FP due to overlaoded function wxSizer::Add().
2018-11-23 09:49:08 +01:00
Daniel Marjamäki
ecb3c04fba
astutils: Add function that visits nodes in AST tree
2018-11-23 06:53:43 +01:00
Daniel Marjamäki
c181d28b1a
astyle formatting
...
[ci skip]
2018-11-23 06:47:27 +01:00
orbitcowboy
428d0147bc
wxwidgets.cfg: Added support for wxSizer::Add().
2018-11-22 14:04:22 +01:00
orbitcowboy
d6c85118a7
wxwidgets.cfg: Improved support for some wxStaticText member functions.
2018-11-22 13:47:17 +01:00
orbitcowboy
2b9bdc52d7
wxwidgets.cfg: Added support for wxWindow::Close() and derived classes.
2018-11-22 13:31:09 +01:00
Malcolm Parsons
0af866c9ba
test_htmlreport: cppcheck no longer supports XML file version 1 ( #1487 )
2018-11-22 13:28:01 +01:00
Daniel Marjamäki
a872b3f57a
donate-cpu: take care of unhandled exception when unpacking archive
2018-11-22 08:44:24 +01:00
Daniel Marjamäki
ff3fd80b46
googletest.cfg: Fix file format
2018-11-21 10:20:05 +01:00
Paul Fultz II
f16d9d7d90
Issue 6175: Check lifetime of a variables stored in containers and member variables
...
Cppcheck will now warn for all cases here:
```cpp
#include <vector>
class CCluster {};
class MyClass
{ public:
std::vector<CCluster*> m_cluster;
void createCluster()
{
CCluster cl;
CCluster* pcl=&cl;
m_cluster.push_back(pcl);
}
void createCluster2()
{
CCluster cl;
m_cluster.push_back(&cl);
}
CCluster* Cluster()
{
CCluster cl;
CCluster* pcl=&cl;
return pcl;
}
CCluster* Cluster2()
{
CCluster cl;
return &cl;
}
};
```
2018-11-21 08:43:57 +01:00
Daniel Marjamäki
081bd7660e
Fix Travis
2018-11-21 08:39:21 +01:00
Daniel Marjamäki
9d8e5e36eb
Added a few TODO comments
2018-11-20 22:57:01 +01:00
Daniel Marjamäki
36a84c5406
add googletest.cfg
2018-11-20 18:47:27 +01:00
Daniel Marjamäki
8227188786
comment out old memleak checking. maybe it can be removed.
2018-11-20 18:40:18 +01:00
orbitcowboy
b4aa04db41
std.cfg: Added returnValue calculation for isless(), islessgreater() etc.
2018-11-20 16:58:33 +01:00
orbitcowboy
a722ba4f89
std.cfg: Improved return value configuration for std::min() and std::max().
2018-11-20 16:07:16 +01:00
Daniel Marjamäki
cba87f913e
donate-cpu: try to catch socket.error better
2018-11-20 11:18:18 +01:00
orbitcowboy
58b3d75b62
std.cfg: Added invalidFunctionArg cfg for strchr().
2018-11-20 08:32:54 +01:00
Daniel Marjamäki
60ce95c1ec
tools/pr.py: minor tweak
2018-11-20 06:36:08 +01:00
Daniel Marjamäki
a5af5b2d08
Revert "Fixed #7619 (False positive: Redundant assignment)"
...
There is a crash I need to look into.
2018-11-20 06:23:43 +01:00
Daniel Marjamäki
399fef17ca
Add script pr.py to merge pull requests. runastyle is executed automatically.
2018-11-20 06:20:46 +01:00
Daniel Marjamäki
c899792232
Fixed #7619 (False positive: Redundant assignment)
2018-11-19 21:23:36 +01:00
yurii.putin
2aecd30cd8
Change cfg
...
Add some function (posix_memalign, reallocarray,aligned_alloc,valloc) to cfg. Add attribute format-str to some function.
2018-11-19 18:23:00 +01:00
Daniel Marjamäki
340964cd65
Travis: updated the .travis_llvmcheck_suppressions file, * is not allowed
2018-11-19 15:42:40 +01:00
Daniel Marjamäki
c91e1fad1e
Travis: Suppress various warnings when checking clang/llvm
2018-11-19 15:16:02 +01:00
Daniel Marjamäki
1fd7ea91e0
Revert "travis: reduce log output when checking clang"
...
This reverts commit 8efa405552
.
2018-11-19 15:11:59 +01:00
Daniel Marjamäki
8efa405552
travis: reduce log output when checking clang
2018-11-19 14:29:12 +01:00
Daniel Marjamäki
347c46491a
donate-cpu-server: try to handle uploaded crash results better
2018-11-19 10:57:04 +01:00
Daniel Marjamäki
f5c2abaefa
Fix shadow warning
2018-11-19 10:21:02 +01:00
Daniel Marjamäki
4d8a85ec4d
donate-cpu: add --package argument
2018-11-19 10:04:53 +01:00
Daniel Marjamäki
42e516582c
Disable shadow warnings when compiling
2018-11-19 09:25:59 +01:00
Daniel Marjamäki
a8cbbe0e16
Fixed #8816 (FP shadowLocal - variable shadows a template function?)
2018-11-19 07:00:15 +01:00
Daniel Marjamäki
9ef3c79bc6
Fixed #8851 (Crash in valueFlowContainerForward (daca@home: pbbam))
2018-11-18 20:18:55 +01:00
Daniel Marjamäki
5eddcb0827
donate-cpu: use --template=daca2 so we can see some more details in the warnings
2018-11-18 16:26:56 +01:00
Daniel Marjamäki
f2b26a488a
relative paths: another fix for {code}
2018-11-18 16:15:09 +01:00
Daniel Marjamäki
982f7dc2b3
relative paths: show {code} properly when there are relative paths
2018-11-18 16:08:08 +01:00
Daniel Marjamäki
e8ac45a5a7
donate-cpu-server.py: Recheck crashes more frequently
2018-11-17 19:32:10 +01:00
amai2012
6b05f8e867
Don't echo file names being extracted from archive
2018-11-17 18:29:12 +01:00
Paul Fultz II
7ef119cbfc
Fix FPs in lifetime checker
...
This fixes several FPs in the lifetime checker. It also fixes issue [8846](https://trac.cppcheck.net/ticket/8846 ):
```cpp
int * f(int a[])
{
return a;
}
```
2018-11-17 09:41:59 +01:00
Carlo Marcelo Arenas Belón
8e465d5963
runastyle
...
several improvements to help with users that have a development workstation without a native version of astyle with the expected version
patch 2 is the most important and less intrusive change towards that objective but the whole series completes the feature, including parts of patch 4 that will allow for example users with spaces on their username to point to a binary no their home directories.
I decided against splitting the changes on 2 patches for simplicity and because I was expecting the whole series might be squashed for merging anyway
2018-11-17 09:29:24 +01:00
Paul Fultz II
d376e9f245
Track variable lifetime through function calls ( #1481 )
2018-11-16 06:12:28 +01:00
Carlo Marcelo Arenas Belon
d880d64a9c
test: avoid a mutable comparator for test ( #1482 )
2018-11-15 16:21:12 +01:00
Daniel Marjamäki
d95d884bba
donate-cpu: try to handle socket error better when getting package
2018-11-14 21:41:16 +01:00
Daniel Marjamäki
5d086d60ad
Fixed #8844 (snd: Wrong varid and ast)
2018-11-14 21:05:09 +01:00
Daniel Marjamäki
69f2e0938a
VarId: Improved varids for struct members ( #8844 )
2018-11-14 19:11:35 +01:00