PATCH: Provide the compile commands of the JSON database in consistent order

Argyrios Kyrtzidis via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 18 16:44:36 PDT 2015


Hi,

I have found it useful for the getAllCompileCommands() to return the commands in the order that they were provided in the JSON file.
This is useful for debugging of issues and reduction of test cases.
For example, an issue may show up due to the order that some commands were processed. It is convenient to be able to remove commands from the file and still preserve the order that they are returned, instead of getting a completely different order when removing a few commands.

Let me know what you think!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: compile-db-all.diff
Type: application/octet-stream
Size: 1851 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150918/32ad16f5/attachment.obj>


More information about the cfe-commits mailing list