Open varungandhi-src opened 2 years ago
Another thing that would be helpful: Add a helper script for bisecting a crash from a compile_commands.json
. This came up in a customer conversation where the customer mentioned that you couldn't run lsif-clang
on a single file.
^ Script above is added in #75; the PR also includes usage examples.
For example, if you have a compile_commands.json which is generating an empty LSIF dump, here is a useful baseline to check first and start delta debugging.
Configuration: clang-11 and lsif-clang from the sourcegraph/lsif-clang Docker image (e78b83931bd2).
Testing with a basic cpp file.
I generated the compilation database as follows: (inside the Docker container with a shell)
This generates a single compilation command database entry, which needs to be massaged into the right format.
Pass this to
lsif-clang
This generates a
dump.lsif
file with 53 lines, including lines such as