clang-tools 22.0.0git
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 135 of file Ref.h.

Constructor & Destructor Documentation

◆ Builder()

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

Definition at line 137 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 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 clang::clangd::SymbolLocation::FileURI, and clang::clangd::Ref::Location.

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

◆ llvm::DenseMapInfo< Entry >

friend struct llvm::DenseMapInfo< Entry >
friend

Definition at line 141 of file Ref.h.

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


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