I added a new feature in semanticdb-find, which is
semanticdb-implied-include-tags. This is meant to be a mode-local
variable which can be setup for any language. Any include tags saved in
this variable will be automatically included in all buffers of that
Thanks Denis Sukhonin for the explanation of the gcc option and how it
There are several languages for which there are a set of implied, or
built-in symbols that are not referenced by an include/import statement.
If you use one of these languages, you can now write a file in your
language that has all these definitions in it, and have them included
for your files. This may be much easier than creating custom semantic
databases for your language to include these features. I'd encourage
anyone to uses or maintains such a language to contemplate this to see
if it will be useful, and let me know.