[cfe-dev] JSONCompilationDB Parser

Manuel Klimek klimek at google.com
Thu Nov 29 09:44:32 PST 2012

Hi Ramneek,

On Thu, Nov 29, 2012 at 7:19 AM, Ramneek Handa <ramneekhanda at gmail.com>wrote:

>  Why is it so strict? I am trying to write an ide backend would like to
> use the compilation commands file to contain some extra information so that
> i don't have to keep multiple files. the following code in parse message
> doesn't allow me to keep any other key but directory, command and file.
> else {
>         ErrorMessage = ("Unknown key: \"" +
>                         KeyString->getRawValue() + "\"").str();
>         return false;
>       }
> Could this be removed?

In my experience being strict is better in the long run. It allows us to
extend the format without the need to worry about clashing names with other
mixed formats, and it surfaces errors early instead of hiding them.

Is there a reason why having multiple files is a problem?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121129/4558fe81/attachment.html>

More information about the cfe-dev mailing list