[PATCH] D43667: [clang-doc] Implement a YAML generator

Julie Hockett via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 10 07:46:17 PDT 2018


juliehockett added a comment.

In https://reviews.llvm.org/D43667#1062746, @Athosvk wrote:

> I'm a bit late on this, but I'd say that YAML is usually not a 'final' format. What would be the use-cases for this? And if is meant as an alternative intermediate format, why not instead of having one big file, have one file per input file? Just wondering what the particular motivation for that could be


The idea is that it's a generally-consumable output format, and so could be interpreted by external software fairly trivially. The bitsream format is compact and good for things that will live entirely in the clang-doc tool, but is harder to deal with outside that scope. YAML bridges that gap.

I haven't thought too much about splitting it up, but it might make sense, given that the one file could get very large. By file might work--let me play with it a bit to see what makes the most sense.


https://reviews.llvm.org/D43667





More information about the cfe-commits mailing list