clang 20.0.0git
Public Member Functions | Public Attributes | List of all members
clang::FunctionEffectWithCondition Struct Reference

A FunctionEffect plus a potential boolean expression determining whether the effect is declared (e.g. More...

#include "clang/AST/Type.h"

Public Member Functions

 FunctionEffectWithCondition ()=default
 
 FunctionEffectWithCondition (const FunctionEffect &E, const EffectConditionExpr &C)
 
std::string description () const
 Return a textual description of the effect, and its condition, if any.
 

Public Attributes

FunctionEffect Effect
 
EffectConditionExpr Cond
 

Detailed Description

A FunctionEffect plus a potential boolean expression determining whether the effect is declared (e.g.

nonblocking(expr)). Generally the condition expression when present, is dependent.

Definition at line 4825 of file Type.h.

Constructor & Destructor Documentation

◆ FunctionEffectWithCondition() [1/2]

clang::FunctionEffectWithCondition::FunctionEffectWithCondition ( )
default

◆ FunctionEffectWithCondition() [2/2]

clang::FunctionEffectWithCondition::FunctionEffectWithCondition ( const FunctionEffect E,
const EffectConditionExpr C 
)
inline

Definition at line 4830 of file Type.h.

Member Function Documentation

◆ description()

std::string FunctionEffectWithCondition::description ( ) const

Return a textual description of the effect, and its condition, if any.

Definition at line 5332 of file Type.cpp.

References Cond, Effect, clang::EffectConditionExpr::getCondition(), clang::FunctionEffect::name(), and clang::Result.

Referenced by clang::Sema::diagnoseConflictingFunctionEffect().

Member Data Documentation

◆ Cond

EffectConditionExpr clang::FunctionEffectWithCondition::Cond

◆ Effect

FunctionEffect clang::FunctionEffectWithCondition::Effect

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