[cfe-dev] JSONCompilationDatabase additional keys

Sean Silva silvas at purdue.edu
Wed Sep 11 18:07:05 PDT 2013


On Wed, Sep 11, 2013 at 8:14 AM, Manuel Klimek <klimek at google.com> wrote:

> On Wed, Sep 11, 2013 at 12:41 PM, Nicholas Gill <mythagel at gmail.com>wrote:
>
>> Hello cfe-dev,
>>
>> At present unknown keys in the compile_commands.json file will cause the
>> JSONCompilationDatabase parser to reject the file.
>>
>> 1. Would a patch to relax this constraint be accepted?
>> 2. Would other consumers of the compile_commands.json be negatively
>> impacted by unknown keys?
>>
>
> Yes. This can be rather big, and being able to quickly parse it is
> important for interactive use cases.
>
>

I don't think that this is a very good reason. Parsing the compilation
database in the JSON format is going to take O(project size) work, and
anything O(project size) is not going to be adequate for interactive use
cases anyway.

-- Sean Silva
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130911/0e055f5b/attachment.html>


More information about the cfe-dev mailing list