LLVM  14.0.0git
Functions
SmallVector.cpp File Reference
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/Twine.h"
#include <cstdint>
Include dependency graph for SmallVector.cpp:

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. More...
 
static void report_at_maximum_capacity (size_t MaxSize)
 Report that this vector is already at maximum capacity. More...
 
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

◆ 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 76 of file SmallVector.cpp.

References llvm::report_fatal_error(), and llvm::to_string().

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 61 of file SmallVector.cpp.

References llvm::report_fatal_error(), and llvm::to_string().

Referenced by getNewCapacity().