clang-tools 20.0.0git
Public Member Functions | Public Attributes | Friends | List of all members
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 69 of file Rename.h.

Constructor & Destructor Documentation

◆ SymbolRange() [1/2]

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

Definition at line 1014 of file Rename.cpp.

◆ SymbolRange() [2/2]

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

Definition at line 1016 of file Rename.cpp.

Member Function Documentation

◆ range()

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

Returns the first range.

Definition at line 1019 of file Rename.cpp.

References Ranges.

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 1024 of file Rename.cpp.

◆ operator<

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

Definition at line 1027 of file Rename.cpp.

◆ operator==

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

Definition at line 1021 of file Rename.cpp.

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 73 of file Rename.h.

Referenced by range().


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