The include path processing for the Compilation Database plugin includes the following code:
The project I'm currently working with includes an include path (among others) of -I../.., which obviously exists almost anywhere in the file system, and thus the if block is skipped. This is wrong, however, as the path should definitely be interpreted relative to the working directory (which seems like it would always be the case for relative paths).
Is there any reason not to do something like this, instead?
It seems to work for me, but I don't know the reasoning behind the initial version.
|For Gerrit Dashboard: QTCREATORBUG-22338|
|259722,3||CompilationDatabase: Properly detect relative paths||master||qt-creator/qt-creator||Status: MERGED||+2||0|