clang 20.0.0git
|
An immutable set of FunctionEffects and possibly conditions attached to them. More...
#include "clang/AST/Type.h"
Public Types | |
using | iterator = FunctionEffectIterator< FunctionEffectsRef > |
Public Member Functions | |
FunctionEffectsRef ()=default | |
bool | empty () const |
size_t | size () const |
ArrayRef< FunctionEffect > | effects () const |
ArrayRef< EffectConditionExpr > | conditions () const |
iterator | begin () const |
iterator | end () const |
void | dump (llvm::raw_ostream &OS) const |
Static Public Member Functions | |
static FunctionEffectsRef | get (QualType QT) |
Extract the effects from a Type if it is a function, block, or member function pointer, or a reference or pointer to one. | |
static FunctionEffectsRef | create (ArrayRef< FunctionEffect > FX, ArrayRef< EffectConditionExpr > Conds) |
Asserts invariants. | |
Public Attributes | |
friend | iterator |
Friends | |
bool | operator== (const FunctionEffectsRef &LHS, const FunctionEffectsRef &RHS) |
bool | operator!= (const FunctionEffectsRef &LHS, const FunctionEffectsRef &RHS) |
An immutable set of FunctionEffects and possibly conditions attached to them.
The effects and conditions reside in memory not managed by this object (typically, trailing objects in FunctionProtoType, or borrowed references from a FunctionEffectSet).
Invariants:
Also, if there are any conditions, at least one of those expressions will be dependent, but this is only asserted in the constructor of FunctionProtoType.
See also FunctionEffectSet, in Sema, which provides a mutable set.
|
default |
Referenced by create().
|
inline |
Definition at line 4941 of file Type.h.
Referenced by clang::Sema::FunctionEffectDiffVector::FunctionEffectDiffVector(), and clang::FunctionEffectSet::getIntersection().
|
inline |
Definition at line 4937 of file Type.h.
Referenced by clang::TreeTransform< Derived >::TransformFunctionProtoType().
|
static |
LLVM_DUMP_METHOD void FunctionEffectsRef::dump | ( | llvm::raw_ostream & | OS | ) | const |
Definition at line 5400 of file Type.cpp.
Referenced by clang::FunctionEffectSet::dump().
|
inline |
Definition at line 4936 of file Type.h.
Referenced by clang::FunctionEffectKindSet::insert().
|
inline |
Definition at line 4933 of file Type.h.
Referenced by clang::FunctionEffectSet::getUnion(), and clang::FunctionProtoType::ExtProtoInfo::requiresFunctionProtoTypeExtraBitfields().
|
inline |
Definition at line 4942 of file Type.h.
Referenced by clang::Sema::FunctionEffectDiffVector::FunctionEffectDiffVector(), and clang::FunctionEffectSet::getIntersection().
|
inlinestatic |
Extract the effects from a Type if it is a function, block, or member function pointer, or a reference or pointer to one.
Definition at line 8838 of file Type.h.
References clang::Type::getAs(), clang::Type::getPointeeType(), and clang::QualType::isNull().
Referenced by clang::Sema::diagnoseFunctionEffectConversion().
|
friend |
|
friend |