nickdiego / compiledb

Tool for generating Clang's JSON Compilation Database files for make-based build systems.
GNU General Public License v3.0
1.38k stars 123 forks source link

Option to produce splitted arguments array (as in pre-0.9.5) #51

Closed Artalus closed 6 years ago

Artalus commented 6 years ago

I used compiledb for a while to analyze Makefiles produced by our legacy build system. It was very convenient since compile_commands.json file contained separate field arguments: [] which I could then grep using jq. After recent update 0.9.2 -> 0.9.7 my scripts broke down since now compiledb just copies whole long compile command into a single command field. It would be nice to have an option to add arguments array to the output.

nickdiego commented 6 years ago

Hi @Artalus , Thanks for reporting this. Could you please test locally with the latest master.

nickdiego commented 6 years ago

Also, note that several improvements/features/changes have been implemented since version 0.9.2, for example:

Artalus commented 6 years ago

Thank you, it works fine now. Only I thought the joined command string was considered a feature, not a regression that should be removed completely, but this one is up to you and clang-tools compliance :)