clang-tools 22.0.0git
|
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< Range > | Ranges |
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) |
Represents a symbol range where the symbol can potentially have multiple tokens.
clang::clangd::SymbolRange::SymbolRange | ( | Range | R | ) |
Definition at line 1059 of file Rename.cpp.
References Ranges.
Referenced by operator!=, operator<, and operator==.
clang::clangd::SymbolRange::SymbolRange | ( | std::vector< Range > | Ranges | ) |
Definition at line 1061 of file Rename.cpp.
References Ranges.
Range clang::clangd::SymbolRange::range | ( | ) | const |
Returns the first range.
Definition at line 1064 of file Rename.cpp.
References Ranges.
Referenced by operator<.
|
friend |
Definition at line 1069 of file Rename.cpp.
References SymbolRange().
|
friend |
Definition at line 1072 of file Rename.cpp.
References range(), and SymbolRange().
|
friend |
Definition at line 1066 of file Rename.cpp.
References Ranges, and SymbolRange().
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().