cppcheck/test/cfg
Paul Fultz II ba037837c9 Track lifetime across multiple returns
This will now warn when doing something like this:

```cpp
template <class T, class K, class V>
const V& get_default(const T& t, const K& k, const V& v) {
    auto it = t.find(k);
    if (it == t.end()) return v;
    return it->second;
}
const int& bar(const std::unordered_map<int, int>& m, int k) {
    auto x = 0;
    return get_default(m, k, x);
}
```

The lifetime warning is considered inconclusive in this case.

I also updated valueflow to no tinject inconclusive values unless `--inconclusive` flag is passed. This creates some false negatives because library functions are not configured to not modify their input parameters, and there are some checks that do not check if the value is inconclusive or not.
2019-09-11 19:25:09 +02:00
..
boost.cpp boost.cfg: Add argument directions; some fixes; rearrange and document. 2019-03-15 11:13:08 +01:00
bsd.c gnu/bsd.cfg: Cleanup redundant configuration for timercmp() and add more tests. 2019-09-10 11:51:47 +02:00
generate-cfg-tests.sh add script to generate cfg tests 2018-03-18 13:03:19 +01:00
gnu.c gnu/bsd.cfg: Cleanup redundant configuration for timercmp() and add more tests. 2019-09-10 11:51:47 +02:00
gtk.c gtk.cfg: Add/enhance function configurations and tests. (#2101) 2019-08-20 15:00:30 +02:00
libcurl.c libcurl.cfg: Add library configuration for libcurl (#2120) 2019-08-29 15:11:59 +02:00
lua.c lua.cfg: Add Lua C API library configuration with tests (#2119) 2019-08-29 11:38:21 +02:00
openmp.c openmp.cfg: Add library configuration for OpenMP (#1956) 2019-07-05 03:00:52 +02:00
posix.c #9323, #9331: Moved configuration and tests to gnu and bsd. 2019-09-08 19:17:15 +02:00
python.c python.cfg: Add Py_CLEAR(), and add initial test file (#2110) 2019-08-24 10:17:23 +02:00
qt.cpp qt.cfg: Add container configuration for QStack (inherits from QVector) (#2102) 2019-08-20 20:37:52 +02:00
runtests.sh Track lifetime across multiple returns 2019-09-11 19:25:09 +02:00
sqlite3.c Library: Add initial configuration with tests for SQLite3 library. (#1737) 2019-03-13 13:57:40 +01:00
std.c Track lifetime across multiple returns 2019-09-11 19:25:09 +02:00
std.cpp Track lifetime across multiple returns 2019-09-11 19:25:09 +02:00
windows.cpp Fix #9047 (c-style casts before malloc) (#1930) 2019-07-03 08:39:44 +02:00
wxwidgets.cpp wxwidgets.cfg: Improved support for wxString member functions. 2019-08-25 15:54:50 +02:00