Search code examples
qtclang

How to generate compile_commands.json with QT project?


I'm not familiar with QT but have to work with a QT project(.pro) recently. I hope to generate a compile_commands.json for this project, so I can read codes inside emacs's lsp mode. Unfortunately, I cannot find any way.


Solution

  • Build/Generate Compilation Database for "yourprojectname"