LLVM: lib/Support/LSP/Transport.cpp File Reference (original) (raw)
#include "[llvm/Support/LSP/Transport.h](Transport%5F8h%5Fsource.html)"#include "[llvm/ADT/SmallString.h](SmallString%5F8h%5Fsource.html)"#include "[llvm/Support/Error.h](llvm%5F2Support%5F2Error%5F8h%5Fsource.html)"#include "[llvm/Support/LSP/Logging.h](Logging%5F8h%5Fsource.html)"#include "[llvm/Support/LSP/Protocol.h](Protocol%5F8h%5Fsource.html)"#include <atomic>#include <optional>#include <system_error>#include <utility>
Go to the source code of this file.
| Functions | |
|---|---|
| static llvm::json::Object | encodeError (llvm::Error Error) |
| Encode the given error as a JSON object. | |
| llvm::Error | decodeError (const llvm::json::Object &O) |
| Decode the given JSON object into an error. | |
| LogicalResult | readLine (std::FILE *In, SmallVectorImpl< char > &Out) |
| Tries to read a line up to and including . |
◆ decodeError()
◆ encodeError()
◆ readLine()
Tries to read a line up to and including
.
If failing, feof(), ferror(), or shutdownRequested() will be set.
Definition at line 278 of file Transport.cpp.
References llvm::SmallVectorImpl< T >::clear(), llvm::failure(), llvm::Read, llvm::SmallVectorImpl< T >::resize(), llvm::SmallVectorImpl< T >::resize_for_overwrite(), Size, and llvm::success.
Referenced by llvm::lsp::JSONTransportInputOverFile::readDelimitedMessage(), and llvm::lsp::JSONTransportInputOverFile::readStandardMessage().