clang-tools 22.0.0git
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 1971 of file Protocol.h.

Member Data Documentation

◆ COMMENT_KIND

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

Definition at line 1978 of file Protocol.h.

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

◆ endCharacter

unsigned clang::clangd::FoldingRange::endCharacter

Definition at line 1975 of file Protocol.h.

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

◆ endLine

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

Definition at line 1974 of file Protocol.h.

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

◆ IMPORT_KIND

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

Definition at line 1979 of file Protocol.h.

◆ kind

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

Definition at line 1980 of file Protocol.h.

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

◆ REGION_KIND

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

Definition at line 1977 of file Protocol.h.

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

◆ startCharacter

unsigned clang::clangd::FoldingRange::startCharacter

Definition at line 1973 of file Protocol.h.

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

◆ startLine

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

Definition at line 1972 of file Protocol.h.

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


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