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
..
2017-06-05 13:23:00 +02:00
2018-01-14 15:37:52 +01:00
2018-01-14 15:37:52 +01:00
2018-01-14 15:37:52 +01:00
2018-11-10 21:30:01 +01:00
2018-05-15 16:37:40 +02:00
2018-07-15 23:05:48 +02:00
2018-11-03 15:53:24 +01:00
2018-10-13 18:20:31 +02:00
2018-11-21 08:39:21 +01:00
2018-05-15 16:37:40 +02:00
2018-10-18 20:08:32 +02:00
2018-08-12 08:01:15 +02:00
2018-06-16 22:28:14 +02:00
2018-11-10 21:30:01 +01:00