clang 22.0.0git
Functions
clang::lifetimes::internal::utils Namespace Reference

Functions

template<typename T >
static llvm::ImmutableSet< Tjoin (llvm::ImmutableSet< T > A, llvm::ImmutableSet< T > B, typename llvm::ImmutableSet< T >::Factory &F)
 Computes the union of two ImmutableSets.
 
template<typename T >
static bool isSubsetOf (const llvm::ImmutableSet< T > &A, const llvm::ImmutableSet< T > &B)
 Checks if set A is a subset of set B.
 
template<typename K , typename V , typename Joiner >
static llvm::ImmutableMap< K, Vjoin (llvm::ImmutableMap< K, V > A, llvm::ImmutableMap< K, V > B, typename llvm::ImmutableMap< K, V >::Factory &F, Joiner JoinValues)
 Computes the key-wise union of two ImmutableMaps.
 

Function Documentation

◆ isSubsetOf()

template<typename T >
static bool clang::lifetimes::internal::utils::isSubsetOf ( const llvm::ImmutableSet< T > &  A,
const llvm::ImmutableSet< T > &  B 
)
static

Checks if set A is a subset of set B.

Definition at line 753 of file LifetimeSafety.cpp.

References clang::T.

◆ join() [1/2]

template<typename K , typename V , typename Joiner >
static llvm::ImmutableMap< K, V > clang::lifetimes::internal::utils::join ( llvm::ImmutableMap< K, V A,
llvm::ImmutableMap< K, V B,
typename llvm::ImmutableMap< K, V >::Factory &  F,
Joiner  JoinValues 
)
static

Computes the key-wise union of two ImmutableMaps.

Definition at line 771 of file LifetimeSafety.cpp.

References V.

◆ join() [2/2]

template<typename T >
static llvm::ImmutableSet< T > clang::lifetimes::internal::utils::join ( llvm::ImmutableSet< T A,
llvm::ImmutableSet< T B,
typename llvm::ImmutableSet< T >::Factory &  F 
)
static

Computes the union of two ImmutableSets.

Definition at line 741 of file LifetimeSafety.cpp.

References E, and clang::T.

Referenced by clang::lifetimes::internal::LoanPropagationAnalysis::join(), and clang::lifetimes::internal::ExpiredLoansAnalysis::join().