Sarcasm / compdb

The compilation database Swiss army knife
MIT License
292 stars 23 forks source link

headerdb: parse some special include search opts #20

Closed snizovtsev closed 4 years ago

snizovtsev commented 4 years ago

Some projects use -I alternatives like -isystem to add directory into search path. Currently compdb skip this information and so miss some headers . That options are almost identical to -I except some nuances not relevant to compdb. So i handle them just in parser.

Sarcasm commented 4 years ago

Thank you for the PR.

FWIW, this was done on purpose, because resolving all the compiler headers could be a bit difficult:

I used the compilation database mostly to have compile commands for the headers of my projects. These headers are often specified by -I as they are not third party code, so omitting -isystem was easy to implement, and was filtering these things out.