[cfe-dev] RFC: YAML as an intermediate format for clang::tooling::Replacement data on disk

Manuel Klimek klimek at google.com
Thu Aug 1 07:02:49 PDT 2013


On Thu, Aug 1, 2013 at 4:00 PM, Vane, Edwin <edwin.vane at intel.com> wrote:

>
>
> > -----Original Message-----
> > From: Manuel Klimek [mailto:klimek at google.com]
> > Sent: Thursday, August 01, 2013 9:40 AM
> > To: Vane, Edwin
> > Cc: Alex Rosenberg; Clang Dev List (cfe-dev at cs.uiuc.edu)
> > Subject: Re: [cfe-dev] RFC: YAML as an intermediate format for
> > clang::tooling::Replacement data on disk
>
> ...
>
> > Note that the compilation databases use the YAML parser. JSON is a
> subset of
> > YAML. I'd also (slightly) prefer to use JSON over YAML for the
> intermediate
> > representation.
>
> Is it enough to hard-code the output into JSON format and just use the
> YAML parser for reading? Or should we aim for a general purpose JSON
> reader/writer as with YAML in LLVM? Either way, I think the general purpose
> parser is beyond scope for what we want to achieve at this time with the
> migrator.
>

I'm opposed to any "general purpose" parsing. Whether JSON is sufficient
here is a question of definition ;) I'd define the interface to be JSON,
and, like you suggest, output JSON and use the YAML parser for parsing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130801/628dbd52/attachment.html>


More information about the cfe-dev mailing list