Hi Nanci!
One simple join would limit the actual_headers to the ones in gtk+ or the ones in gdk. When adding a header to a project, we could look for it in actual_headers and just add it to the relation if it's found. Otherwise we add it to actual_headers and make a relation to the current project. If more than a project depends on the same headers, it wouldn't be duplicated (you can easily exclude it in the query).
This would help us for libraries that have a single include but people files bugs that they don't like to autocompletion for symbols that aren't available in the current source file because they didn't include the library in that file which sounds reasonable to me. In that case we will have to take care of using a query that lists all the files we want to know about. I was proposing creating a temporary database because I think that query will be slow but I haven't checked. Regards, Johannes
Attachment:
signature.asc
Description: This is a digitally signed message part