Sourcetrail is a very cool cross-platform source explorer for C/C++.
There is a Qt Creator plugin to support Sourcetrail, but it can also load a compile_commands.json which Qt Creator is able to generate since 4.8.
Sourcetrail is able to load the 4.8 version of compile_commands.json but unfortunately not the 4.9-beta1 version.
The difference seems to be the --driver-mode=cl entry introduced in 4.9.
This is the error message in Sourcetrail:
I created a Sourcetrail task.
Let's assume that both variants of the compile_commands.json are valid. Would it be possible to have some user options for generating the file? Either when generating or global? I could think of choice of:
- "arguments" lists vs. "command" value
- driver mode
- Filename (with current path as default)