LLVM 20.0.0git
Functions
SmallVector.cpp File Reference
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/MemAlloc.h"
#include <cstdint>

Go to the source code of this file.

Functions

static void report_size_overflow (size_t MinSize, size_t MaxSize)
 Report that MinSize doesn't fit into this vector's size type.
 
static void report_at_maximum_capacity (size_t MaxSize)
 Report that this vector is already at maximum capacity.
 
template<class Size_T >
static size_t getNewCapacity (size_t MinSize, size_t TSize, size_t OldCapacity)
 

Function Documentation

◆ getNewCapacity()

template<class Size_T >
static size_t getNewCapacity ( size_t  MinSize,
size_t  TSize,
size_t  OldCapacity 
)
static

Definition at line 90 of file SmallVector.cpp.

References report_at_maximum_capacity(), and report_size_overflow().

◆ report_at_maximum_capacity()

static void report_at_maximum_capacity ( size_t  MaxSize)
static

Report that this vector is already at maximum capacity.

Throws std::length_error or calls report_fatal_error.

Definition at line 77 of file SmallVector.cpp.

References llvm::report_fatal_error().

Referenced by getNewCapacity().

◆ report_size_overflow()

static void report_size_overflow ( size_t  MinSize,
size_t  MaxSize 
)
static

Report that MinSize doesn't fit into this vector's size type.

Throws std::length_error or calls report_fatal_error.

Definition at line 62 of file SmallVector.cpp.

Referenced by getNewCapacity().