HomePhabricator

[JSON] Allow emitting comments in json::OStream

Authored by sammccall on Sep 23 2020, 2:33 PM.

Description

[JSON] Allow emitting comments in json::OStream

This isn't standard JSON, but is a popular extension.
It will be used to show errors in context, rendering pseudo-json for humans.

Differential Revision: https://reviews.llvm.org/D88103