clang-tools 22.0.0git
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

References SelectionTree().

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

◆ operator=() [1/2]

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

References SelectionTree().

◆ operator=() [2/2]

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

References SelectionTree().

◆ root()

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

Definition at line 149 of file Selection.h.

◆ operator<<

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

Definition at line 162 of file Selection.h.

References SelectionTree().


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