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

Stores information about a region of code that can be folded. More...

#include <Protocol.h>

Public Attributes

unsigned startLine = 0
 
unsigned startCharacter
 
unsigned endLine = 0
 
unsigned endCharacter
 
std::string kind
 

Static Public Attributes

static const llvm::StringLiteral REGION_KIND = "region"
 
static const llvm::StringLiteral COMMENT_KIND = "comment"
 
static const llvm::StringLiteral IMPORT_KIND = "import"
 

Detailed Description

Stores information about a region of code that can be folded.

Definition at line 1948 of file Protocol.h.

Member Data Documentation

◆ COMMENT_KIND

const llvm::StringLiteral clang::clangd::FoldingRange::COMMENT_KIND = "comment"
static

Definition at line 1955 of file Protocol.h.

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

◆ endCharacter

unsigned clang::clangd::FoldingRange::endCharacter

Definition at line 1952 of file Protocol.h.

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

◆ endLine

unsigned clang::clangd::FoldingRange::endLine = 0

Definition at line 1951 of file Protocol.h.

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

◆ IMPORT_KIND

const llvm::StringLiteral clang::clangd::FoldingRange::IMPORT_KIND = "import"
static

Definition at line 1956 of file Protocol.h.

◆ kind

std::string clang::clangd::FoldingRange::kind

Definition at line 1957 of file Protocol.h.

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

◆ REGION_KIND

const llvm::StringLiteral clang::clangd::FoldingRange::REGION_KIND = "region"
static

Definition at line 1954 of file Protocol.h.

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

◆ startCharacter

unsigned clang::clangd::FoldingRange::startCharacter

Definition at line 1950 of file Protocol.h.

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

◆ startLine

unsigned clang::clangd::FoldingRange::startLine = 0

Definition at line 1949 of file Protocol.h.

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


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