This is an archive of the discontinued LLVM Phabricator instance.

docs: Explain how to generate a compilation database for Qt projects
AbandonedPublic

Authored by sergio.martins on Apr 17 2017, 2:48 PM.

Details

Summary

qbs is the new build system for Qt, and it allows to easily create a compilation database too.
Also solves the problem that Qt projects needed to use Bear (which didn't work on WindowS), or ported to CMake.

Diff Detail

Event Timeline

sergio.martins created this revision.Apr 17 2017, 2:48 PM
sergio.martins edited the summary of this revision. (Show Details)Apr 17 2017, 2:50 PM
sergio.martins added reviewers: gribozavr, silvas.
joerg edited edge metadata.Apr 22 2017, 7:30 AM

The change itself sounds fine, but the referenced documentation can likely be improved, i.e. searching for "qbs compilation database" or even "clangdb" doesn't trigger any hits here.

kfunk accepted this revision.EditedApr 25 2017, 7:25 AM
kfunk added a subscriber: kfunk.

Looks good from my side. Can push if it gets another +1.

This revision is now accepted and ready to land.Apr 25 2017, 7:25 AM

The change itself sounds fine, but the referenced documentation can likely be improved, i.e. searching for "qbs compilation database" or even "clangdb" doesn't trigger any hits here.

Good point. I've raised this issue with the qbs guys, it seems undocumented within Qt.

gribozavr resigned from this revision.Feb 25 2019, 5:57 AM

Feel free to re-add me as a reviewer when you want to pick up this patch again. Happy to commit it for you.

kfunk requested changes to this revision.Feb 25 2019, 6:20 AM

Due to https://blog.qt.io/blog/2018/10/29/deprecation-of-qbs/ this should probably be abandoned.

This revision now requires changes to proceed.Feb 25 2019, 6:20 AM
sergio.martins abandoned this revision.Feb 25 2019, 6:22 AM

qbs is dead, let's abandon this change