[Syntax] Don't pretty-print -emit-syntax JSON output (#15380)

This commit is contained in:
Harlan
2018-03-27 10:55:59 -04:00
committed by GitHub
parent bdfa6cd4d7
commit 527cce409a
4 changed files with 16 additions and 16 deletions

View File

@@ -288,7 +288,7 @@ static bool emitSyntax(SourceFile *SF, LangOptions &LangOpts,
auto os = getFileOutputStream(OutputFilename, SF->getASTContext());
if (!os) return true;
json::Output jsonOut(*os);
json::Output jsonOut(*os, /*PrettyPrint=*/false);
auto Root = SF->getSyntaxRoot().getRaw();
jsonOut << *Root;
*os << "\n";