clang-tools  12.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 76 of file Selection.h.

Member Enumeration Documentation

◆ Selection

Enumerator
Unselected 
Partial 
Complete 

Definition at line 106 of file Selection.h.

Constructor & Destructor Documentation

◆ SelectionTree() [1/2]

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

Referenced by root().

◆ SelectionTree() [2/2]

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

Member Function Documentation

◆ commonAncestor()

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

Definition at line 817 of file Selection.cpp.

◆ createEach()

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

Definition at line 775 of file Selection.cpp.

◆ createRight()

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

Definition at line 787 of file Selection.cpp.

◆ 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 148 of file Selection.h.

References SelectionTree().

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 161 of file Selection.h.


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