clang 22.0.0git
clang::FunctionEffectSet Class Reference

A mutable set of FunctionEffects and possibly conditions attached to them. More...

#include "clang/AST/TypeBase.h"

Classes

struct  Conflict

Public Types

using iterator = FunctionEffectIterator<FunctionEffectSet>
using Conflicts = SmallVector<Conflict>

Public Member Functions

 FunctionEffectSet ()=default
 FunctionEffectSet (const FunctionEffectsRef &FX)
bool empty () const
size_t size () const
iterator begin () const
iterator end () const
 operator FunctionEffectsRef () const
void dump (llvm::raw_ostream &OS) const
bool insert (const FunctionEffectWithCondition &NewEC, Conflicts &Errs)
bool insert (const FunctionEffectsRef &Set, Conflicts &Errs)

Static Public Member Functions

static FunctionEffectSet getUnion (FunctionEffectsRef LHS, FunctionEffectsRef RHS, Conflicts &Errs)
static FunctionEffectSet getIntersection (FunctionEffectsRef LHS, FunctionEffectsRef RHS)

Public Attributes

friend iterator

Detailed Description

A mutable set of FunctionEffects and possibly conditions attached to them.

Used to compare and merge effects on declarations.

Has the same invariants as FunctionEffectsRef.

Definition at line 5202 of file TypeBase.h.

Member Typedef Documentation

◆ Conflicts

◆ iterator

Constructor & Destructor Documentation

◆ FunctionEffectSet() [1/2]

clang::FunctionEffectSet::FunctionEffectSet ( )
default

Referenced by getIntersection(), and getUnion().

◆ FunctionEffectSet() [2/2]

clang::FunctionEffectSet::FunctionEffectSet ( const FunctionEffectsRef & FX)
inlineexplicit

Definition at line 5209 of file TypeBase.h.

Member Function Documentation

◆ begin()

iterator clang::FunctionEffectSet::begin ( ) const
inline

Definition at line 5217 of file TypeBase.h.

◆ dump()

LLVM_DUMP_METHOD void FunctionEffectSet::dump ( llvm::raw_ostream & OS) const

Definition at line 5706 of file Type.cpp.

References clang::FunctionEffectsRef::dump().

◆ empty()

bool clang::FunctionEffectSet::empty ( ) const
inline

Definition at line 5212 of file TypeBase.h.

◆ end()

iterator clang::FunctionEffectSet::end ( ) const
inline

Definition at line 5218 of file TypeBase.h.

References size().

◆ getIntersection()

◆ getUnion()

◆ insert() [1/2]

bool FunctionEffectSet::insert ( const FunctionEffectsRef & Set,
Conflicts & Errs )

Definition at line 5629 of file Type.cpp.

References insert(), and clang::Set.

◆ insert() [2/2]

◆ operator FunctionEffectsRef()

clang::FunctionEffectSet::operator FunctionEffectsRef ( ) const
inline

Definition at line 5220 of file TypeBase.h.

◆ size()

size_t clang::FunctionEffectSet::size ( ) const
inline

Definition at line 5213 of file TypeBase.h.

Referenced by end().

Member Data Documentation

◆ iterator

Definition at line 5216 of file TypeBase.h.


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