clang-tools 19.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.
 
RefSlab build () &&
 Consumes the builder to finalize the slab.
 

Friends

struct llvm::DenseMapInfo< Entry >
 

Detailed Description

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

Definition at line 132 of file Ref.h.

Constructor & Destructor Documentation

◆ Builder()

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

Definition at line 134 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.

References E, and clang::clangd::RefSlab::RefSlab().

◆ 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.

References E, and ID.

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

Friends And Related Function Documentation

◆ llvm::DenseMapInfo< Entry >

friend struct llvm::DenseMapInfo< Entry >
friend

Definition at line 138 of file Ref.h.


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