Rikard Falkeborn fc1d5b187f leakNoVarFunctionCall: Use AST more (fix #9252) (#2086)
Use the AST a little bit more to improve the check. In order to do so,
rewrite the check to work from the outer function first and then check
the arguments, instead of the other way around.

It also fixes Trac ticket #9252, no warning is now given for

	void* malloc1() {
		return(malloc1(1));
	}

This FP seems to be common in daca results.

It also makes it possible to improve handling of casts, for example
cppcheck now warns about

	void f() {
		strcpy(a, (void*) strdup(p));
	}

But not for

	char* f() {
		char* ret = (char*)strcpy(malloc(10), "abc");
		return ret;
	}

These FP/FN were introduced when the check was switched to use the
simplified token list.
2019-08-14 22:01:40 +02:00
..
2019-06-29 07:49:14 +02:00
2018-10-13 18:20:31 +02:00
2019-03-16 09:17:50 +01:00
2019-07-25 17:19:51 +02:00
2019-02-09 07:24:06 +01:00
2019-03-16 09:17:50 +01:00
2019-06-29 07:49:14 +02:00
2019-03-16 09:17:50 +01:00
2019-03-16 09:17:50 +01:00
2019-06-15 13:01:45 +02:00
2019-03-16 09:17:50 +01:00
2019-08-07 08:04:10 +02:00
2019-07-24 09:59:01 +02:00
2019-06-29 07:49:14 +02:00
2019-03-16 09:17:50 +01:00
2019-04-06 06:54:38 +02:00
2019-03-16 09:17:50 +01:00
2019-02-09 07:24:06 +01:00
2019-03-16 09:17:50 +01:00
2019-05-17 09:31:41 +02:00
2019-04-14 15:00:03 +02:00
2019-07-31 22:56:16 +02:00
2019-08-12 12:54:25 +02:00
2019-08-14 20:53:51 +02:00
2019-07-17 10:43:18 +02:00
2019-02-09 07:24:06 +01:00
2019-02-09 07:24:06 +01:00
2018-10-13 18:20:31 +02:00
2018-10-13 18:20:31 +02:00
2018-03-31 20:59:09 +02:00
2019-05-09 06:55:36 +02:00
2018-06-17 09:06:16 +02:00
2019-06-29 07:49:14 +02:00
2019-07-31 22:35:51 +02:00
2019-07-31 22:35:51 +02:00
2019-08-07 08:02:07 +02:00
2019-07-17 10:14:25 +02:00
2019-07-17 10:14:25 +02:00
2019-07-02 20:59:52 +02:00