clang-tools  15.0.0git
Public Attributes | List of all members
clang::clangd::VersionedTextDocumentIdentifier Struct Reference

#include <Protocol.h>

Inheritance diagram for clang::clangd::VersionedTextDocumentIdentifier:
Inheritance graph
Collaboration diagram for clang::clangd::VersionedTextDocumentIdentifier:
Collaboration graph

Public Attributes

llvm::Optional< std::int64_t > version
 The version number of this document. More...
- Public Attributes inherited from clang::clangd::TextDocumentIdentifier
URIForFile uri
 The text document's URI. More...

Detailed Description

Definition at line 136 of file Protocol.h.

Member Data Documentation

◆ version

llvm::Optional<std::int64_t> clang::clangd::VersionedTextDocumentIdentifier::version

The version number of this document.

If a versioned text document identifier is sent from the server to the client and the file is not open in the editor (the server has not received an open notification before) the server can send null to indicate that the version is known and the content on disk is the master (as speced with document content ownership).

The version number of a document will increase after each change, including undo/redo. The number doesn't need to be consecutive.

clangd extension: versions are optional, and synthesized if missing.

Definition at line 147 of file Protocol.h.

Referenced by clang::clangd::fromJSON().

The documentation for this struct was generated from the following file: