clang-tools  11.0.0git
Classes | Public Member Functions | Friends | List of all members
clang::clangd::RefSlab::Builder Class Reference

RefSlab::Builder is a mutable container that can 'freeze' to RefSlab. More...

#include <Ref.h>

Public Member Functions

 Builder ()
 
void insert (const SymbolID &ID, const Ref &S)
 Adds a ref to the slab. Deep copy: Strings will be owned by the slab. More...
 
RefSlab build () &&
 Consumes the builder to finalize the slab. More...
 

Friends

struct llvm::DenseMapInfo< Entry >
 

Detailed Description

RefSlab::Builder is a mutable container that can 'freeze' to RefSlab.

Definition at line 128 of file Ref.h.

Constructor & Destructor Documentation

◆ Builder()

clang::clangd::RefSlab::Builder::Builder ( )
inline

Definition at line 130 of file Ref.h.

Member Function Documentation

◆ build()

RefSlab clang::clangd::RefSlab::Builder::build ( ) &&

Consumes the builder to finalize the slab.

Definition at line 42 of file Ref.cpp.

◆ insert()

void clang::clangd::RefSlab::Builder::insert ( const SymbolID ID,
const Ref S 
)

Adds a ref to the slab. Deep copy: Strings will be owned by the slab.

Definition at line 36 of file Ref.cpp.

Referenced by clang::clangd::FileShardedIndex::getShard(), and clang::clangd::SymbolCollector::handleMacros().

Friends And Related Function Documentation

◆ llvm::DenseMapInfo< Entry >

friend struct llvm::DenseMapInfo< Entry >
friend

Definition at line 143 of file Ref.h.


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