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 2009 of file Protocol.h.

Member Data Documentation

◆ COMMENT_KIND

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

Definition at line 2016 of file Protocol.h.

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

◆ endCharacter

unsigned clang::clangd::FoldingRange::endCharacter

Definition at line 2013 of file Protocol.h.

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

◆ endLine

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

Definition at line 2012 of file Protocol.h.

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

◆ IMPORT_KIND

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

Definition at line 2017 of file Protocol.h.

◆ kind

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

Definition at line 2018 of file Protocol.h.

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

◆ REGION_KIND

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

Definition at line 2015 of file Protocol.h.

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

◆ startCharacter

unsigned clang::clangd::FoldingRange::startCharacter

Definition at line 2011 of file Protocol.h.

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

◆ startLine

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

Definition at line 2010 of file Protocol.h.

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


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