LLVM 22.0.0git
|
Concrete implementation of the JSONTransportInput that reads from a file. More...
#include "llvm/Support/LSP/Transport.h"
Public Member Functions | |
JSONTransportInputOverFile (std::FILE *In, JSONStreamStyle Style=JSONStreamStyle::Standard) | |
bool | hasError () const final |
bool | isEndOfInput () const final |
LogicalResult | readDelimitedMessage (std::string &Json) final |
For lit tests we support a simplified syntax: | |
LogicalResult | readStandardMessage (std::string &Json) final |
Public Member Functions inherited from llvm::lsp::JSONTransportInput | |
JSONTransportInput (JSONStreamStyle Style=JSONStreamStyle::Standard) | |
virtual | ~JSONTransportInput ()=default |
LogicalResult | readMessage (std::string &Json) |
Read in a message from the input stream. |
Concrete implementation of the JSONTransportInput that reads from a file.
Definition at line 75 of file Transport.h.
|
inlineexplicit |
Definition at line 77 of file Transport.h.
References llvm::lsp::JSONTransportInput::JSONTransportInput(), and llvm::lsp::Standard.
|
inlinefinalvirtual |
Implements llvm::lsp::JSONTransportInput.
Definition at line 81 of file Transport.h.
References const.
Referenced by readStandardMessage().
|
inlinefinalvirtual |
Implements llvm::lsp::JSONTransportInput.
Definition at line 82 of file Transport.h.
References const.
|
finalvirtual |
For lit tests we support a simplified syntax:
Implements llvm::lsp::JSONTransportInput.
Definition at line 353 of file Transport.cpp.
References llvm::failure(), readLine(), llvm::StringRef::starts_with(), llvm::StringRef::str(), and llvm::succeeded().
|
finalvirtual |
Implements llvm::lsp::JSONTransportInput.
Definition at line 306 of file Transport.cpp.
References llvm::StringRef::consume_front(), llvm::StringRef::empty(), llvm::failed(), llvm::failure(), llvm::getAsUnsignedInteger(), hasError(), llvm::Read, readLine(), llvm::success, and llvm::StringRef::trim().