clang-tools 20.0.0git
Classes | Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
clang::clangd::SelectionTree Class Reference

#include <Selection.h>

Classes

struct  Node
 

Public Types

enum  Selection : unsigned char { Unselected , Partial , Complete }
 

Public Member Functions

 SelectionTree (const SelectionTree &)=delete
 
SelectionTreeoperator= (const SelectionTree &)=delete
 
 SelectionTree (SelectionTree &&)=default
 
SelectionTreeoperator= (SelectionTree &&)=default
 
const NodecommonAncestor () const
 
const Noderoot () 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)
 

Detailed Description

Definition at line 77 of file Selection.h.

Member Enumeration Documentation

◆ Selection

Enumerator
Unselected 
Partial 
Complete 

Definition at line 107 of file Selection.h.

Constructor & Destructor Documentation

◆ SelectionTree() [1/2]

clang::clangd::SelectionTree::SelectionTree ( const SelectionTree )
delete

◆ SelectionTree() [2/2]

clang::clangd::SelectionTree::SelectionTree ( SelectionTree &&  )
default

Member Function Documentation

◆ commonAncestor()

const Node * clang::clangd::SelectionTree::commonAncestor ( ) const

◆ createEach()

bool clang::clangd::SelectionTree::createEach ( ASTContext &  AST,
const syntax::TokenBuffer &  Tokens,
unsigned  Begin,
unsigned  End,
llvm::function_ref< bool(SelectionTree)>  Func 
)
static

◆ createRight()

SelectionTree clang::clangd::SelectionTree::createRight ( ASTContext &  AST,
const syntax::TokenBuffer &  Tokens,
unsigned  Begin,
unsigned  End 
)
static

Definition at line 1067 of file Selection.cpp.

References clang::clangd::AST, and createEach().

Referenced by clang::clangd::getHover(), and clang::clangd::getSemanticRanges().

◆ operator=() [1/2]

SelectionTree & clang::clangd::SelectionTree::operator= ( const SelectionTree )
delete

◆ operator=() [2/2]

SelectionTree & clang::clangd::SelectionTree::operator= ( SelectionTree &&  )
default

◆ root()

const Node & clang::clangd::SelectionTree::root ( ) const
inline

Definition at line 149 of file Selection.h.

Friends And Related Function Documentation

◆ operator<<

llvm::raw_ostream & operator<< ( llvm::raw_ostream &  OS,
const SelectionTree T 
)
friend

Definition at line 162 of file Selection.h.


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