clang-tools 23.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 2030 of file Protocol.h.

Member Data Documentation

◆ COMMENT_KIND

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

Definition at line 2037 of file Protocol.h.

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

◆ endCharacter

unsigned clang::clangd::FoldingRange::endCharacter

Definition at line 2034 of file Protocol.h.

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

◆ endLine

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

Definition at line 2033 of file Protocol.h.

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

◆ IMPORT_KIND

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

Definition at line 2038 of file Protocol.h.

◆ kind

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

Definition at line 2039 of file Protocol.h.

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

◆ REGION_KIND

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

Definition at line 2036 of file Protocol.h.

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

◆ startCharacter

unsigned clang::clangd::FoldingRange::startCharacter

Definition at line 2032 of file Protocol.h.

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

◆ startLine

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

Definition at line 2031 of file Protocol.h.

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


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