Page MenuHomePhabricator

[clangd] JSONTracer: flush after writing event
Needs ReviewPublic

Authored by simark on Jul 12 2018, 11:26 AM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Let's say I use "CLANGD_TRACE=/tmp/clangd.json" and "tail -F
/tmp/clangd.json", I'll often see unfinished lines, where the rest of
the data is still in clangd's output buffer. Doing a flush in
rawEvent makes sure we can see all the data immediatly.