Lines Matching refs:JSON
104 std::string JSON; // Messages may be large, reuse same big buffer. in loop() local
111 if (readRawMessage(JSON)) { in loop()
112 ThreadCrashReporter ScopedReporter([&JSON]() { in loop()
115 OS << JSON << "\n"; in loop()
117 if (auto Doc = llvm::json::parse(JSON)) { in loop()
123 vlog("<<< {0}\n", JSON); in loop()
146 bool readRawMessage(std::string &JSON) { in readRawMessage() argument
147 return Style == JSONStreamStyle::Delimited ? readDelimitedMessage(JSON) in readRawMessage()
148 : readStandardMessage(JSON); in readRawMessage()
150 bool readDelimitedMessage(std::string &JSON);
151 bool readStandardMessage(std::string &JSON);
227 bool JSONTransport::readStandardMessage(std::string &JSON) { in readStandardMessage() argument
276 JSON.resize(ContentLength); in readStandardMessage()
280 return std::fread(&JSON[Pos], 1, ContentLength - Pos, In); in readStandardMessage()
287 InMirror << llvm::StringRef(&JSON[Pos], Read); in readStandardMessage()
300 bool JSONTransport::readDelimitedMessage(std::string &JSON) { in readDelimitedMessage() argument
301 JSON.clear(); in readDelimitedMessage()
313 JSON += Line; in readDelimitedMessage()