flow: don't parse inline functions which aren't interesting
commit5267058209f6b18e8f720ca1b12d4382eb896570
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 14 May 2018 10:47:07 +0000 (14 13:47 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 14 May 2018 10:47:07 +0000 (14 13:47 +0300)
tree2ba59c414ec63d817bc8b17cac6b6b322ac9ed7b
parentd9bb6e5ad2a61165f37f1509f1b24dcbb6d93035
flow: don't parse inline functions which aren't interesting

One thing which is a problem is that inline functions generate tons and
tons of duplicate warnings, but the main thing here that I was worried
about was that we were filling the DB with nonsense.

In the original code, we would parse inline and because they are static
and there are no callers in this file then we'd record that "This function
is never called".  So then the inline calls other functions with
"everything is unknown".  Then the other callers would sometimes be like,
"Ugh...  Too much information from too many callers.  Let's ignore it all".

So now if we have an uncalled inline in a .c file then we say "Ok.  This
is legit an uncalled inline and everything is unknown".  But otherwise we
don't even parse it.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_flow.c