files: check for schema files relative to the bin_dir
commit9266428d240b32aeccf956042ec2a9bb9d31d053
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 13 Aug 2018 16:59:44 +0000 (13 19:59 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 13 Aug 2018 16:59:44 +0000 (13 19:59 +0300)
treece066c60c9081f4895861cf7f149ffb8b212a60e
parent19a80d3e7a066c8dd50407a73144b0459d44c51d
files: check for schema files relative to the bin_dir

One thing that we want to have is smatch_data/ directories inside the
project.  Most of the time the data can built automatically so that's
fine.

But we don't want to have to copy all the smatch_data/db/ stuff there,
because that doesn't change from project to project.  So with this patch
we check for the db file by searching from the bin_dir.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch.h
smatch_db.c
smatch_files.c