clang-tools 22.0.0git
clang::clangd::Range Struct Reference

#include <Protocol.h>

Public Member Functions

bool contains (Position Pos) const
bool contains (Range Rng) const

Public Attributes

Position start
 The range's start position.
Position end
 The range's end position.

Friends

bool operator== (const Range &LHS, const Range &RHS)
bool operator!= (const Range &LHS, const Range &RHS)
bool operator< (const Range &LHS, const Range &RHS)

Detailed Description

Definition at line 185 of file Protocol.h.

Member Function Documentation

◆ contains() [1/2]

bool clang::clangd::Range::contains ( Position Pos) const
inline

Definition at line 202 of file Protocol.h.

References end, and start.

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

◆ contains() [2/2]

bool clang::clangd::Range::contains ( Range Rng) const
inline

Definition at line 203 of file Protocol.h.

References end, and start.

◆ operator!=

bool operator!= ( const Range & LHS,
const Range & RHS )
friend

Definition at line 195 of file Protocol.h.

◆ operator<

bool operator< ( const Range & LHS,
const Range & RHS )
friend

Definition at line 198 of file Protocol.h.

References end, and start.

◆ operator==

bool operator== ( const Range & LHS,
const Range & RHS )
friend

Definition at line 192 of file Protocol.h.

References end, and start.

Member Data Documentation

◆ end

◆ start


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