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

Represents a symbol range where the symbol can potentially have multiple tokens. More...

#include <Rename.h>

Public Member Functions

 SymbolRange (Range R)
 SymbolRange (std::vector< Range > Ranges)
Range range () const
 Returns the first range.

Public Attributes

std::vector< RangeRanges
 Ranges for the tokens that make up the symbol's name.

Friends

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

Detailed Description

Represents a symbol range where the symbol can potentially have multiple tokens.

Definition at line 112 of file Rename.h.

Constructor & Destructor Documentation

◆ SymbolRange() [1/2]

clang::clangd::SymbolRange::SymbolRange ( Range R)

Definition at line 1059 of file Rename.cpp.

References Ranges.

Referenced by operator!=, operator<, and operator==.

◆ SymbolRange() [2/2]

clang::clangd::SymbolRange::SymbolRange ( std::vector< Range > Ranges)

Definition at line 1061 of file Rename.cpp.

References Ranges.

Member Function Documentation

◆ range()

Range clang::clangd::SymbolRange::range ( ) const

Returns the first range.

Definition at line 1064 of file Rename.cpp.

References Ranges.

Referenced by operator<.

◆ operator!=

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

Definition at line 1069 of file Rename.cpp.

References SymbolRange().

◆ operator<

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

Definition at line 1072 of file Rename.cpp.

References range(), and SymbolRange().

◆ operator==

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

Definition at line 1066 of file Rename.cpp.

References Ranges, and SymbolRange().

Member Data Documentation

◆ Ranges

std::vector<Range> clang::clangd::SymbolRange::Ranges

Ranges for the tokens that make up the symbol's name.

Usually a single range, but there can be multiple ranges if the tokens for the symbol are split, e.g. ObjC selectors.

Definition at line 116 of file Rename.h.

Referenced by operator==, range(), SymbolRange(), and SymbolRange().


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