clang-tools  7.0.0
Functions
JSONRPCDispatcher.cpp File Reference
#include "JSONRPCDispatcher.h"
#include "ProtocolHandlers.h"
#include "Trace.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/Chrono.h"
#include "llvm/Support/Errno.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/JSON.h"
#include "llvm/Support/SourceMgr.h"
#include <istream>
Include dependency graph for JSONRPCDispatcher.cpp:

Go to the source code of this file.

Functions

static void logIncomingMessage (const llvm::Optional< json::Value > &ID, llvm::Optional< StringRef > Method, const json::Object *Error)
 
static bool readLine (std::FILE *In, std::string &Out)
 
static llvm::Optional< std::string > readStandardMessage (std::FILE *In, JSONOutput &Out)
 
static llvm::Optional< std::string > readDelimitedMessage (std::FILE *In, JSONOutput &Out)
 

Function Documentation

◆ logIncomingMessage()

static void logIncomingMessage ( const llvm::Optional< json::Value > &  ID,
llvm::Optional< StringRef >  Method,
const json::Object *  Error 
)
static

Definition at line 155 of file JSONRPCDispatcher.cpp.

References clang::clangd::detail::log().

◆ readDelimitedMessage()

static llvm::Optional<std::string> readDelimitedMessage ( std::FILE *  In,
JSONOutput Out 
)
static

Definition at line 310 of file JSONRPCDispatcher.cpp.

◆ readLine()

static bool readLine ( std::FILE *  In,
std::string &  Out 
)
static

Definition at line 214 of file JSONRPCDispatcher.cpp.

◆ readStandardMessage()

static llvm::Optional<std::string> readStandardMessage ( std::FILE *  In,
JSONOutput Out 
)
static

Definition at line 238 of file JSONRPCDispatcher.cpp.