clang-tools 19.0.0git
Public Attributes | List of all members
clang::clangd::TextDocumentItem Struct Reference

#include <Protocol.h>

Public Attributes

URIForFile uri
 The text document's URI.
 
std::string languageId
 The text document's language identifier.
 
std::optional< int64_t > version
 The version number of this document (it will strictly increase after each change, including undo/redo.
 
std::string text
 The content of the opened text document.
 

Detailed Description

Definition at line 291 of file Protocol.h.

Member Data Documentation

◆ languageId

std::string clang::clangd::TextDocumentItem::languageId

The text document's language identifier.

Definition at line 296 of file Protocol.h.

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

◆ text

std::string clang::clangd::TextDocumentItem::text

The content of the opened text document.

Definition at line 305 of file Protocol.h.

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

◆ uri

URIForFile clang::clangd::TextDocumentItem::uri

The text document's URI.

Definition at line 293 of file Protocol.h.

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

◆ version

std::optional<int64_t> clang::clangd::TextDocumentItem::version

The version number of this document (it will strictly increase after each change, including undo/redo.

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

Definition at line 302 of file Protocol.h.

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


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