clang-tools 20.0.0git
|
#include <Selection.h>
Classes | |
struct | Node |
Public Types | |
enum | Selection : unsigned char { Unselected , Partial , Complete } |
Public Member Functions | |
SelectionTree (const SelectionTree &)=delete | |
SelectionTree & | operator= (const SelectionTree &)=delete |
SelectionTree (SelectionTree &&)=default | |
SelectionTree & | operator= (SelectionTree &&)=default |
const Node * | commonAncestor () const |
const Node & | root () const |
Static Public Member Functions | |
static bool | createEach (ASTContext &AST, const syntax::TokenBuffer &Tokens, unsigned Begin, unsigned End, llvm::function_ref< bool(SelectionTree)> Func) |
static SelectionTree | createRight (ASTContext &AST, const syntax::TokenBuffer &Tokens, unsigned Begin, unsigned End) |
Friends | |
llvm::raw_ostream & | operator<< (llvm::raw_ostream &OS, const SelectionTree &T) |
Definition at line 77 of file Selection.h.
enum clang::clangd::SelectionTree::Selection : unsigned char |
Enumerator | |
---|---|
Unselected | |
Partial | |
Complete |
Definition at line 107 of file Selection.h.
|
delete |
|
default |
const Node * clang::clangd::SelectionTree::commonAncestor | ( | ) | const |
Definition at line 1097 of file Selection.cpp.
References clang::clangd::SelectionTree::Node::Children, and clang::clangd::SelectionTree::Node::Selected.
Referenced by clang::clangd::getHover(), and clang::clangd::getSemanticRanges().
|
static |
Definition at line 1055 of file Selection.cpp.
References clang::clangd::AST, Bounds, and clang::clangd::pointBounds().
Referenced by createRight(), clang::clangd::findDocumentHighlights(), and clang::clangd::ClangdServer::getAST().
|
static |
Definition at line 1067 of file Selection.cpp.
References clang::clangd::AST, and createEach().
Referenced by clang::clangd::getHover(), and clang::clangd::getSemanticRanges().
|
delete |
|
default |
|
inline |
Definition at line 149 of file Selection.h.
|
friend |
Definition at line 162 of file Selection.h.